Skip to content

Commit 6023c87

Browse files
Fix the test build error (#86176)
Remove outputtype=exe, mark test as [Fact] --------- Co-authored-by: Mark Plesko <[email protected]>
1 parent 87157cd commit 6023c87

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/tests/JIT/opt/SSA/MemorySsa.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
using System;
55
using System.Runtime.CompilerServices;
6+
using Xunit;
67

78
public class MemorySsaTests
89
{
910
private static int _intStatic;
1011

11-
public static int Main()
12+
[Fact]
13+
public static int TestEntryPoint()
1214
{
1315
return ProblemWithHandlerPhis(new int[0]) ? 101 : 100;
1416
}

src/tests/JIT/opt/SSA/MemorySsa.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<PropertyGroup>
3-
<OutputType>Exe</OutputType>
4-
</PropertyGroup>
52
<PropertyGroup>
63
<DebugType>None</DebugType>
74
<Optimize>True</Optimize>

src/tests/issues.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
<ExcludeList Include = "$(XunitTestBinBase)/JIT/opt/ValueNumbering/ExposedLocalsNumbering/**">
1818
<Issue>https://github.com/dotnet/runtime/issues/80184</Issue>
1919
</ExcludeList>
20+
<ExcludeList Include = "$(XunitTestBinBase)/JIT/opt/SSA/MemorySsa/**">
21+
<Issue>https://github.com/dotnet/runtime/issues/86112</Issue>
22+
</ExcludeList>
2023
</ItemGroup>
2124

2225
<!-- All OS/Arch CoreCLR excludes -->

0 commit comments

Comments
 (0)