[release/6.0] Don't create multiple large files at the same time (#63032)
authorDavid CantĂș <dacantu@microsoft.com>
Fri, 31 Dec 2021 04:10:51 +0000 (20:10 -0800)
committerGitHub <noreply@github.com>
Fri, 31 Dec 2021 04:10:51 +0000 (21:10 -0700)
commit3b71fd8b7b5b8ddf7aeece6a7296f408b7e1fd1d
tree837c7942f1985776fda483a2db20c959bb0af151
parent67b110e8b64a101c81f6f8b9746b0648bceb2cf4
[release/6.0] Don't create multiple large files at the same time (#63032)

* Move NoInt32OverflowInTheBufferingLogic to OuterLoop and address pending feedback (#60606)

* Don't create multiple large files at the same time (#62519)

* move existing large file tests into a separate type (no code changes)

* don't run the large file tests in parallel

* use FileOptions.DeleteOnClose to ensure that each test removes it's own file

use single large file to test File.ReadAllBytes and ile.ReadAllBytesAsync for both limits

* Fix DisableParallelization build issue

* Apply suggestions from code review

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
* Update src/libraries/System.IO.FileSystem/tests/LargeFileTests.cs

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
* Notepad with uppercase (#62487)

Co-authored-by: Adam Sitnik <adam.sitnik@gmail.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTests.cs
src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytes.cs
src/libraries/System.IO.FileSystem/tests/File/ReadWriteAllBytesAsync.cs
src/libraries/System.IO.FileSystem/tests/FileStream/Read.cs
src/libraries/System.IO.FileSystem/tests/LargeFileTests.cs [new file with mode: 0644]
src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj
src/libraries/System.IO/tests/BufferedStream/BufferedStreamTests.cs