Commit Graph
66 Commits
Author SHA1 Message Date
Daniel Harvey 252cdc5e95 Bulk updates of tests for AssertExtensions (dotnet/corefx#18491)
Bulk update to AssertExtensions.Throws for AOT support. This doesn't disable Assert.Throws.

Commit migrated from https://github.com/dotnet/corefx/commit/b43b4df2e0e2182154bb0f425cb4a61bc1269828
2017-04-18 09:52:02 -07:00
Ian Hays 17206626b1 Fix netfx disabled tests in IO FS
Commit migrated from https://github.com/dotnet/corefx/commit/245486297467081f6d105085e3d74ece8351c897
2017-03-30 13:58:24 -07:00
Ian Hays 59871c58b2 PR feedback for IO test audit for netfx
Commit migrated from https://github.com/dotnet/corefx/commit/48014e40bcc539f6a71c09aaf38779d06fbb716e
2017-03-30 13:19:35 -07:00
Ian Hays ebe8f66e34 Get IO.FileSystem tests running on NetFX
There were a high number of failing FileSystem tests for NetFX. This PR modifies the tests to run on NetFX without failures and adds comments for the reasons for the tests that had to be disabled.


Commit migrated from https://github.com/dotnet/corefx/commit/7d7b9be2c0eb870658722b1b78f850fbb08b4a97
2017-03-30 12:16:21 -07:00
Steve Harter 1380db7ec3 Change tests that use async void to async Task
Commit migrated from https://github.com/dotnet/corefx/commit/39883264a961957d29bd535e2854eed8056343f0
2017-03-10 10:47:53 -06:00
Ian Hays cb1c596f44 Add fileshare verification to lock/unlock osx test
Commit migrated from https://github.com/dotnet/corefx/commit/79b2895eae0d31872cc348307556e07f9c631a74
2017-02-24 14:28:04 -08:00
Ian Hays ffc47c6dd0 Cleanup File Lock/Unlock OSX tests.
Commit migrated from https://github.com/dotnet/corefx/commit/21dd604a2a8d1e76925f01f34849ad442308f28f
2017-02-24 13:21:42 -08:00
Jon Hanna aa4b36ebfa Fix several typos (dotnet/corefx#16264)
* Fix several typos

coment → comment
rangecheck → range check
testcase → test case
deffer → defer
everytime → every time
whitespaces → whitespace (whitespace is uncountable)
white space → whitespace
white spaces → whitespace
the the → the
a → a
nametest → name test
scaned → scanned
and and → and
undecision → indecision
are no whitespace → is no whitespace
Whidbey casing
Everett casing
unkown → unknown
messsage → message
mesage → message
mesasage → message
publically → publicly (publically is attested but questionable).
exceptionto → exception to
mutatable → mutable
implemention → implementation
hadnt → hadn't
couldnt → couldn't
wouldnt → wouldn't
wont → won't
isntead → instead
preocessor → processor
particural → particular
interations → iterations
enterying → entering
stoppped → stopped
stoped → stopped
verication → verification
compuatation → computation
revisisted → revisited
partioner → partitioner
lock'ed → locked
table'd → table would
hashtable'ed → hashtabled (still coining, but tabled is analogous)
intialize → initialize
calcuate → calculate
perfom → perform
performr → perform
matthing → matching
corect → correct
thorw → throw
supress → suppress
reqeust → request
mutliple → multiple
ot → to
trival → trivial
upto → up to
specfices → specifies
patttern → pattern
descrepancy → discrepancy
explict → explicit
implict → implicit
usign → using
non-sensical → nonsensical
contination → continuation
producs → products
childred → children
parametr → parameter
approriate → appropriate
insted → instead
expection → exception
successsfully → successfully
funtion → function
unqiue → unique
apparant → apparent
expception → exception
conatined → contained
apssed → passed
propogate → propagate
cutoms → custom
currrent → current
curent → current
concurent → concurrent
coplted → completed
unexcepted → Unexpected (where the latter seems more appropriate)
to to → to
abd → and
refence → reference
particiant → participant
cuurrent → current
extratc → extract
cparticipant → participant
ehich → which
choosen → chosen
mske → make
alread → already
aquire → acquire
droppping → dropping
intial → initial
tru → true
aprticipant → participant
excption → exception
sempahore → semaphore
fileds → fields
threashold → threshold
duting → during
didnt → didn't
atribute → attribute
serliazation → serialization
localy → locally
channge → change
prperties → properties
attrbute → attribute
sentinal → sentinel
shoukd → should
existant → existent
commnent → comment
expeted → expected
propert → property
commnet → comment
datat → data
ther → the
mach → match
inhertiance → inheritance
convience → convenience
completley → completely
otheriwse → otherwise
actuall → actual
inefficent → inefficient
defalut → default
comparsion → comparison
charcters → characters
postion → position
aleady → already
charater → character
incosistent → inconsistent
seperate → separate
veify → verify
currentlly → currently
corect → correct
betwwen → between
omiting → omitting
readr → reader
compae → compare
allways → always
thown → thrown
with with → with
usecase → use case
avare → aware
lexem → lexeme
grammer → grammar
oposite → opposite
overrided → overridden
everithig → everything
chages → changes
memeber → member
proerties → properties
identifer → identifier
doesnot → does not
deriaved → derived
varialble → variable

* defered -> deferred

* Revert changes within clrcompression.

* Revert underreach → under-reach

* Fix casing broken while fixing spelling.

* Use type name instead of "Diagnostic sources"


Commit migrated from https://github.com/dotnet/corefx/commit/f0ccd9742065ee2aa296448fe3dd38ef6ff77af9
2017-02-17 10:31:00 -08:00
Dennis "D.C." Dietrich 18308e9141 Enabling overflow checks for debug (dotnet/corefx#16189)
* Marking code as unchecked (pt 9)

Additional unchecked for new test code and missed cases in BitConverter

* Marking code as unchecked (pt 9a)

Added unchecked to two casts in ManagedWebSocket

* CI test failure fixes

Overflow exceptions in:
 - Windows NT Debug dotnet/corefx#3458
 - OS X Debug dotnet/corefx#3357

* CI test failure fixes

Overflow exceptions in:
 - Windows 7 Debug Outerloop (build 8)
 - OS X Debug Outerloop (build 45)

* CI test failure fixes

Fixed overflow exception from OS X Debug Outerloop (build 46)


Commit migrated from https://github.com/dotnet/corefx/commit/7f6ac8bf97a84666ed3e7ef6b77c1a9470ae78c8
2017-02-16 14:42:33 -08:00
Dennis "D.C." Dietrich a841a37279 Marking code as unchecked (pt 5)
Marking code that may intentionally lead to over or underflows with
unchecked in preparation of turning on CheckForOverflowUnderflow for
all projects (issue dotnet/corefx#3140)


Commit migrated from https://github.com/dotnet/corefx/commit/05c544cb5fe109357d61d1391b3ab4860a5b2eaf
2017-02-10 01:47:19 +01:00
sepidehMS e3d734c19d Add comments to PlatformSpecific tests
Commit migrated from https://github.com/dotnet/corefx/commit/493cb79ff4976479be5cc7c6f1fe2d5d9b710425
2017-02-07 15:46:26 -08:00
Ian Hays c751f966e5 Enable tests for Linux FileStream Lock/Unlock (dotnet/corefx#13923)
Enable tests for Linux FileStream Lock/Unlock


Commit migrated from https://github.com/dotnet/corefx/commit/d0db741197a65cfa1ea5a7dca07981cb12906666
2016-12-12 15:10:50 -08:00
Alexander Radchenko 8fc6df42dd System.IO.FileSystem.Tests project fail ValidFileOptions test if FileOptions contains Encrypted flag (dotnet/corefx#14163)
* Splite ValidFileOptions test on two


Commit migrated from https://github.com/dotnet/corefx/commit/3e43aff83cd231b588d4a286014febe3bca783f5
2016-12-02 10:14:06 -05:00
Stephen Toub e95ddc204b Fix FileStream.InitFromHandle to avoid calling virtual CanSeek on Unix
Doing so breaks IsolatedStorageFileStream


Commit migrated from https://github.com/dotnet/corefx/commit/1a4a219382a709d4dae63df92d68c9c0e1cf1585
2016-10-23 17:46:15 -04:00
Stephen Toub e25b3cdf40 Fix FileStream.VerifyHandleIsSync to avoid calling virtual CanRead/CanWrite methods
Doing so breaks IsolatedStorageFileStream, as they're being called during construction, leading to null ref exceptions.


Commit migrated from https://github.com/dotnet/corefx/commit/dfc9a008edac2ed69965cf17b62d10b16a398ef0
2016-10-23 13:06:56 -04:00
Santiago Fernandez Madero f720329782 Fix for Build 20161020-31 (dotnet/corefx#12857)
Commit migrated from https://github.com/dotnet/corefx/commit/fd87838f34c31811c3f2355caedfa2d0fee6fd9e
2016-10-20 22:06:59 -04:00
Justin Van Patten aa68f5ce2f Replace uses of Xunit.PlatformID with renamed TestPlatforms
Replace uses of `Xunit.PlatformID` with renamed `TestPlatforms` because
the old name conflicts with `System.PlatformID` and should be plural
according to the design guidelines for flags enums.


Commit migrated from https://github.com/dotnet/corefx/commit/5179dda7331b1e201519adf76ce9ae69ffe2a0f6
2016-10-01 17:18:41 -07:00
Jeremy Kuhne db81a86a72 Add negative tests for Begin/End
Adds negative tests for Begin/End, removes unnecessary block for `\\.\`
paths.

(The block for `\\.\` paths fulfills a need that predates our supported
Windows OSes. You cannot inadvertently mess up "raw" drives. In addition
we currently allow `\\?\` which is another form of device path access.)


Commit migrated from https://github.com/dotnet/corefx/commit/5376c25bea9523265696ed5806f3dc8b51bbbf25
2016-09-26 16:25:37 -07:00
Jeremy Kuhne 12bee9bc55 Expose Begin/End methods on FileStream
Also add [Obsolete] to the Handle property


Commit migrated from https://github.com/dotnet/corefx/commit/729355a49293078e416bde888dfbbd7fb49e4a37
2016-09-22 21:33:40 -07:00
Jose Perez Rodriguez fe65028e81 Merge branch dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/76676dc565873fdd46d545fadfbbdfe8fd9d464e
2016-09-20 10:27:33 -07:00
Stephen Toub c97b0561ae Use ArrayPool in CopyToAsync in several System.IO streams
- FileStream (already in async on Windows, now for all flavors)
- DeflateStream
- GZipStream
- PipeStream
- UnmanagedMemoryStream


Commit migrated from https://github.com/dotnet/corefx/commit/73c954517c9fbdea29fe1884fb143cb6ab3af4ec
2016-09-14 07:28:19 -04:00
Jose Perez Rodriguez bf0da1a921 Required changes to get the build green again after merge from dev/api
Commit migrated from https://github.com/dotnet/corefx/commit/ed8347041878054db7707d54201779ccba967782
2016-09-13 11:21:48 -07:00
Stephen Toub abc4973a51 Add missing APIs to System.IO.FileSystem
Adds:
- File.WriteAllLines(string, string[])
- File.WriteAllLines(string, string[], Encoding)
- File.Replace(string, string, string)
- File.Replace(string, string, string, bool)
- File.Encrypt(string)
- File.Decrypt(string)
- FileInfo.Encrypt()
- FileInfo.Decrypt()
- FileStream.Handle
- FileStream.Lock(long, long)
- FileStream.Unlock(long, long)

Currently throws PlatformNotSupportedException from:
- Encrypt/Decrypt on all platforms.  These can be implemented on Win32, but the APIs needed are not currently exposed as allowed in buildtools.
- Lock/Unlock on Unix and WinRT.  These can be implemented on Unix; I just didn't in this commit.


Commit migrated from https://github.com/dotnet/corefx/commit/2fbc772ea8bd83a37b9f26c1a7c928a6be2d2c0b
2016-09-12 20:32:59 -04:00
Jose Perez Rodriguez 1105adec7a Merge remote-tracking branch 'mainrepo/dev/api' into MergeDevApi
Commit migrated from https://github.com/dotnet/corefx/commit/a1989d82cff273db667638e4836ea7836f5c6eb9
2016-09-12 15:20:12 -07:00
Stephen Toub a2f1dade91 Add tests for FileStream.CopyToAsync
Commit migrated from https://github.com/dotnet/corefx/commit/eb3622c6e2947382e3c546cac0fc98213c13d4ca
2016-09-10 13:42:33 -04:00
Stephen Toub 03d9aaf411 Fix FileStreamBase Begin/End race condition
The new FileStreamBase.Begin/End overloads do argument and state validation similar to that of desktop.  There is a subtle but critical difference, however: in this validation, desktop checks to see whether the stream is closed via ```_handle.IsClosed```, whereas FileStreamBase does it via ```SafeFileHandle.IsClosed```.  ```SafeFileHandle``` is an abstract property that returns the handle... but it also flushes.  The base Stream's Begin/End implementation has synchronization to ensure that only one async operation is in flight at a time, but this call to ```SafeFileHandle.IsClosed``` comes before that synchronization kicks in (it's in the base), and as such we end up potentially having a Flush invocations concurrently with Write invocations (Write is called asynchronously from the base BeginWrite), which is very unsafe.

This commit fixes it by adding an IsClosed property that goes directly to the underlying handle, bypassing the publicly exposed SafeFileHandle (that flushes so that direct access to the file via the handle is consistent with operations already performed on the FileStream).

(I also fixed a small issue in the ManyConcurrentWriteAsyncs that highlighted the issue.  Order of async read/write operations is only guaranteed on FileStream when in async mode; in non-async mode, it's theoretically possible (though unlikely) for operations to complete out-of-order, but the test is validating that the operations completed in order.  While I've never seen this fail, I'm proactively fixing it.)


Commit migrated from https://github.com/dotnet/corefx/commit/5afb9f69400cbb61971a7eeb4fcfc49fbbc1080b
2016-09-02 11:48:36 -04:00
Jose Perez Rodriguez a27ef1f7be Reving up the versions of the contracts where we have added Apis for netcoreapp1.1 (dotnet/corefx#10531)
Reving up the versions of the contracts where we have added Apis for
netcoreapp1.1

Commit migrated from https://github.com/dotnet/corefx/commit/62334804aa655a250838eefed68553f357ebec5f
2016-08-04 13:05:12 -07:00
Stephen Toub 1103f1f4fc Fix FileStream.Flush on Unix when wrapping non-synchronizable descriptors
FileStream can be used with any arbitrary file descriptor on Unix.  FileStream.Flush may use FSync to try to synchronize the file's state with the storage device, but that only makes sense and works for certain kinds of file descriptors.  For other file descriptors, currently we're throwing an exception if the operation fails, when really we should just ignore the failure, as there's no work to be done.


Commit migrated from https://github.com/dotnet/corefx/commit/1994ac4a43105cda48c2fbcdf967d6ae48330e0e
2016-07-16 21:49:13 -04:00
Stephen Toub 504635be9c Reduce FileSystem outerloop test time
Changes:
- An outerloop test verifying that we would throw when trying to use File.ReadAllBytes to read a > 2GB file was first writing out 2GB worth of data to disk.  We can instead just create a FileStream and explicitly change its length.  On my machine, this changes the execution time of that test from ~25s to just a few milliseconds.
- Two "mini stress" tests are enabled in outerloop and are explicitly coded to run for 30 seconds doing lots of reading and writing.  I've changed these to be 10 seconds.


Commit migrated from https://github.com/dotnet/corefx/commit/e4c1fed1843c2dc80b9b345d6fac0251e865a227
2016-06-17 13:13:23 -04:00
Stephen Toub c5f340f810 Fix several IO tests and remove some stale ActiveIssue
Commit migrated from https://github.com/dotnet/corefx/commit/d8a923f8d15a1fea42bcdd641cde00ca58f57c04
2016-06-01 12:49:28 -04:00
Stephen Toub f9aa7a1e29 Change FileStream async default back to false
FileStream's ctors allow the creator of the stream to specify whether asynchronous I/O should be used.  The default in the full framework is false.  When FileStream was ported to corefx, the default was changed to true.

Such a default of true can be beneficial, as it means that ReadAsync/WriteAsync calls on streams created without overriding that default will naturally use overlapped I/O on Windows, which can lead to better scalability and performance.  However, there are other ramifications, in particular for existing code and code written to be portable across .NET implementations.  For example:
- Using Read/Write on a stream created with useAsync=true ends up blocking as calls around Read/WriteAsync, making them more expensive than they'd otherwise be.  So existing code that uses a FileStream for simple read/writes may actually get slower.
- The SafeFileHandle exposed from the FileStream naturally is associated with that particular async setting, such that attempting to use it to construct a FileStream with a conflicting setting will fail with an exception.
- FileStreams constructed with useAsync=true have special behaviors around how the position of the stream is updated after an async operation is initiated, which means code written expecting one default may fail when run with a different default.
- Etc.
While there are benefits to changing the default, the cons outweigh the pros.  A developer can always opt-in to useAsync=true, but it's better to keep the default consistent across all implementations, especially for code written to be portable across those implementations.  This commit changes it back to be false.


Commit migrated from https://github.com/dotnet/corefx/commit/08991e80aa6ce5ab7e43265b30824a91f6112db4
2016-05-18 07:31:12 -04:00
Lakshmi Priya Sekar fb75367b90 Fix formatting.
Commit migrated from https://github.com/dotnet/corefx/commit/36058b99eb5fd3874cd43b1aa366f924f42fe18f
2016-04-04 15:51:50 -07:00
Lakshmi Priya Sekar 9b2eefd56c Add IsNotWindowsNanoServer to Platform detection.
Disable failing Windows Nano tests.


Commit migrated from https://github.com/dotnet/corefx/commit/16909dea9f9661ccff4364770cb21e975a5d291b
2016-04-04 14:24:33 -07:00
Ian Hays 9d790f57d4 Add missing tests to System.IO.FileSystem
Adds missing tests to achieve strictly higher coverage than ToF and also adds some other new tests and cleans up existing tests.


Commit migrated from https://github.com/dotnet/corefx/commit/09e70d429a7c89abed1514a90667e0088f903d4c
2016-03-31 11:11:17 -07:00
stephentoub 11bb3f3c94 Remove and replace some stale [ActiveIssue(...)]
Remove some stale [ActiveIssues] where the tests now pass.

Replace some others with [PlatformSpecific], where the behavior is deemed to be "by design" / accepted.

And update a few issue numbers.


Commit migrated from https://github.com/dotnet/corefx/commit/9c13b0c9389189d86fb2d270c28660946b3ae80c
2016-03-25 15:24:49 -04:00
Jon Hanna c13188394b Fix multiple typos
Commit migrated from https://github.com/dotnet/corefx/commit/4bfc0ab963a7880c0d4b90b82317fe65d7842eba
2016-03-20 14:36:30 +00:00
stephentoub 757ca58bc1 Avoid faliing in UnixFileStream if flock isn't supported
flock on OSX can fail with ENOTSUP if "the referenced descriptor is not of the correct type", e.g. if it's a FIFO.  Since we don't want to entirely prevent usage of FileStream with such file types on OSX, and since locking is already advisory only, this change just ignores rather than throws when flock fails with ENOTSUP.


Commit migrated from https://github.com/dotnet/corefx/commit/38177bc1de3a73ef5e8b5f449478ea588406a4b4
2016-03-15 19:50:12 -04:00
dotnet-bot b32ddb5d98 Deploy nameof throughout corefx in MemberData
Commit migrated from https://github.com/dotnet/corefx/commit/9c3156b9ada06b8e58ac53d48fc303500bf3e476
2016-02-18 23:58:15 -05:00
Lakshmi Priya Sekar 033caf14d4 Disable failing test dotnet/corefx#6153.
Commit migrated from https://github.com/dotnet/corefx/commit/25e77e11dbc57363842389d5c022bdaf00d9d705
2016-02-16 18:14:27 -08:00
stephentoub 787741715f Use System.Buffers in CopyToAsync implementations
The default CopyToAsync on Stream uses an 80K temporary buffer, making it a good candidate for buffer pooling.  But Stream is in mscorlib and can't rely on System.Buffers.  So this commit introduces an implementation that streams in mscorlib can use, just by overriding CopyToAsync and delegating.  It then uses that in DeflateStream, GZipStream, FileStream, PipeStream, and UnmanagedMemoryStream.


Commit migrated from https://github.com/dotnet/corefx/commit/34ce38bc1517e8b7693223a9e41479dd24abc59a
2016-02-09 11:34:19 -05:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
stephentoub 94a6b74a7e Remove stale TODO in SafeFileHandle test
Commit migrated from https://github.com/dotnet/corefx/commit/cabe44c6dd6ebc405c995e3a89a782e871aae7dd
2016-01-04 13:50:06 -05:00
Nate Amundson c1571f42f9 Make unit tests async to work with 1 thread
Currently, the tests System.IO.Tests.FileStream_SafeFileHandle.
ThrowWhenHandlePositionIsChanged and System.Net.NetworkInformation.
Tests.UnixPingUtilityTests.PacketSizeIsRespected hang when running on a
Unix machine with 1 thread.  Declaring the tests async fixes this issue.


Commit migrated from https://github.com/dotnet/corefx/commit/6d15aa69e332866e6282994edfd2de5ca0192899
2015-12-14 18:21:49 -06:00
Stephen A. Imhoff a8ce720bd6 Update test namespace in System.IO.FileSystem
Update test namespace where applicable.
Cleanup `using`s in updated files.


Commit migrated from https://github.com/dotnet/corefx/commit/5b5717c2eb8fc88ed5bd59babe39890c581ad622
2015-09-25 21:30:57 +09:00
stephentoub 8f85a391bf improve FileOptions tests for FileStream
We didn't have any tests for the DeleteOnClose behavior with FileStream.  We also weren't testing combinations of FileOptions, nor validating that we could read/write files created with non-default options.


Commit migrated from https://github.com/dotnet/corefx/commit/63efcbf5ae19883cd9bc9aa10703a681be1c73ea
2015-09-23 14:57:24 -04:00
stephentoub b07d619076 Reduce FileSystem inner loop test time from 90 to 5 seconds
Three tests were consuming the vast majority of the time:
- DirectoryLongerThanMaxLongPathWithExtendedSyntax_ThrowsPathTooLongException. It was taking 70 seconds on my machine.  I moved it to outer loop.
- ManyConcurrentWriteAsyncs.  It uses a MemberData that results in it executing ~40 times, for a combined time of around 7 seconds on my machine.  I made one combination run in inner loop and moved the rest to outer.
- CopyToAsyncBetweenFileStreams.  Same MemberData, same solution.


Commit migrated from https://github.com/dotnet/corefx/commit/03205295cc6834b1fdcd8b7ba364515f4ec7164a
2015-09-12 19:46:49 -04:00
stephentoub 26253f6265 Add more tests for FileStream
- Mainly, I added several tests (with lots of theory-based parameterized inputs) to stress WriteAsync: many concurrent writes, long chains of writes, etc., for various size inputs and buffers, async vs not, etc.
- There were multiple variations on Flush tests based on whether to use Flush(), Flush(false), or False(true).  I combined these all into single theories.
- I then added some more Flush tests for some missing cases highlighted by code coverage, e.g. flushing reads.
- I then duplicated these tests for FlushAsync, and added some additional tests specific to FlushAsync, e.g. cancellation.
- I added a few tests for pipes.


Commit migrated from https://github.com/dotnet/corefx/commit/bb34d5a458613faa39d3808a8a352e62e3bcf52f
2015-08-24 16:59:59 -04:00
tymlipari 4113737a6e Handle internal overflow of the write buffer in WriteAsync by introducing new cases:
1) Internal buffer overflows, but write can fit in next buffer - Fill the existing buffer, copy the remaining data into a new buffer, and flush the original to disk

2) Internal buffer is non-empty, overflows, and the remaining data won't fit in a second buffer - Chain the flush operation to a second write operation which writes the entire incoming block directly to disk.

Additionally, adds a new unit test to ensure the different buffering cases are being covered.


Commit migrated from https://github.com/dotnet/corefx/commit/b69caa929d3cb3b87574ee31a651d799f61e3a75
2015-08-24 16:50:56 -04:00
stephentoub d6467ac0af Use RuntimeInformation across corefx for platform detection
This commit deletes our temporary Interop.PlatformDetection.cs mechanism and replaces usage of it with usage of System.Runtime.InteropServices.RuntimeInformation.dll.


Commit migrated from https://github.com/dotnet/corefx/commit/6861b625b391566544be9a60356c8c03b15e5fb5
2015-08-06 10:25:17 -04:00
Ian Hays a9766775b0 - Added an overload to GetTestFilePath that takes an integer index parameter to add to the generated filename so that calls to the function within loops will be able to differentiate themselves
- Resolves dotnet/corefx#1434


Commit migrated from https://github.com/dotnet/corefx/commit/1dbfabb32d61a8c2db25c82bb22743bcc15c2ccb
2015-07-29 15:23:33 -07:00