Fix StartInfo test (#44392)
authorDan Moseley <danmose@microsoft.com>
Thu, 12 Nov 2020 01:58:23 +0000 (17:58 -0800)
committerGitHub <noreply@github.com>
Thu, 12 Nov 2020 01:58:23 +0000 (01:58 +0000)
commita207c7f5df922560aac9028a2d7416116d38fce6
tree1da9186bc48c7a6c6f49222a17668ff30b2d5bba
parent8b3b1b5fb517b60b8f41c6e97d9b338988542483
Fix StartInfo test (#44392)

* Stabilize StartInfo_NotepadWithContent_withArgumentList

* Add state in failed SetApartmentState exception

* Same for other tests

* Extract common code

* Modify

* Extract common code

* Pass down throwOnError

* Apply suggestions from code review

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
* feedback

* Add process for disposal

* Make slow test outer loop

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
src/coreclr/src/System.Private.CoreLib/src/System/Threading/Thread.CoreCLR.cs
src/libraries/System.Diagnostics.Process/tests/ProcessStartInfoTests.cs
src/libraries/System.Diagnostics.Process/tests/ProcessTestBase.cs
src/libraries/System.Diagnostics.Process/tests/ProcessWaitingTests.cs
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Threading/Thread.Unix.cs [deleted file]
src/libraries/System.Private.CoreLib/src/System/Threading/Thread.Windows.cs [deleted file]
src/libraries/System.Private.CoreLib/src/System/Threading/Thread.cs
src/libraries/System.Threading.Thread/tests/ThreadTests.cs
src/mono/netcore/System.Private.CoreLib/src/System/Threading/Thread.Mono.cs