Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.

using System;
using System.Runtime.InteropServices;
using System.Reflection;
using System.Threading;
using Xunit;
using TestLibrary;

/*
* Issue description:
Expand All @@ -16,12 +12,11 @@

public class Test_foreground_shutdown
{
[Fact]
public static int TestEntryPoint()
public static int Main()
{
new Thread(() =>
{
Thread.Sleep(TimeSpan.FromSeconds(1));
Thread.Sleep(TimeSpan.FromSeconds(2));
Environment.Exit(100);
}).Start();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
<PropertyGroup>
<!-- Needed for Environment.Exit -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
<!-- Test checks the behavior of Main -->
<ReferenceXUnitWrapperGenerator>false</ReferenceXUnitWrapperGenerator>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
<Compile Include="foreground-shutdown.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(TestLibraryProjectPath)" />
</ItemGroup>
</Project>
Loading