Reduce FileSystem outerloop test time
authorStephen Toub <stoub@microsoft.com>
Fri, 17 Jun 2016 17:13:23 +0000 (13:13 -0400)
committerStephen Toub <stoub@microsoft.com>
Fri, 17 Jun 2016 17:13:23 +0000 (13:13 -0400)
commit504635be9c4888392cb95c10f2dd19b6776ff309
treed6af9b32ef710ef01614b550467172f0b30e131a
parentcd204cd298244109544a2ec93f8425fbe477e4bb
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
src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs
src/libraries/System.IO.FileSystem/tests/FileStream/ReadAsync.cs
src/libraries/System.IO.FileSystem/tests/FileStream/WriteAsync.cs