Add a test for Environment.ExitCode
authorStephen Toub <stoub@microsoft.com>
Sat, 9 Jul 2016 22:53:47 +0000 (18:53 -0400)
committerStephen Toub <stoub@microsoft.com>
Sat, 9 Jul 2016 22:53:47 +0000 (18:53 -0400)
commitd2e46cc6995cd5c668d524ecabfa25f95e472308
tree1ad665587b36378b7859613d40f29ea6adbfff51
parent812a40bb7a84650de21c8993ba4c3c3a892b8a50
Add a test for Environment.ExitCode

We've consolidated almost all of our remote execution logic (testing code in another process) into a single shared console app that supports using reflection to invoke delegates, but to test ExitCode properly, we need t a void-returning Main method.  This commit adds such a little helper app to the System.Runtime.Extensions tests suite and adds a test that uses it.  That test is disabled until the associated issue in coreclr is fixed.

Commit migrated from https://github.com/dotnet/corefx/commit/7608f2462a10f278f7407b76514b0fd3fda1ea9d
src/libraries/System.Runtime.Extensions/tests/System.Runtime.Extensions.Tests.csproj
src/libraries/System.Runtime.Extensions/tests/System/Environment.Exit.cs
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/AssemblyAttributes.cs [new file with mode: 0644]
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/VoidMainWithExitCodeApp.cs [new file with mode: 0644]
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/VoidMainWithExitCodeApp.csproj [new file with mode: 0644]
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/project.json [new file with mode: 0644]