From 6023c870e60ef45b704d2b6e850dce9e14d8d9a5 Mon Sep 17 00:00:00 2001 From: Kunal Pathak Date: Fri, 12 May 2023 15:49:29 -0700 Subject: [PATCH] Fix the test build error (#86176) Remove outputtype=exe, mark test as [Fact] --------- Co-authored-by: Mark Plesko --- src/tests/JIT/opt/SSA/MemorySsa.cs | 4 +++- src/tests/JIT/opt/SSA/MemorySsa.csproj | 3 --- src/tests/issues.targets | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/tests/JIT/opt/SSA/MemorySsa.cs b/src/tests/JIT/opt/SSA/MemorySsa.cs index 9d2d46f3..db67163 100644 --- a/src/tests/JIT/opt/SSA/MemorySsa.cs +++ b/src/tests/JIT/opt/SSA/MemorySsa.cs @@ -3,12 +3,14 @@ using System; using System.Runtime.CompilerServices; +using Xunit; public class MemorySsaTests { private static int _intStatic; - public static int Main() + [Fact] + public static int TestEntryPoint() { return ProblemWithHandlerPhis(new int[0]) ? 101 : 100; } diff --git a/src/tests/JIT/opt/SSA/MemorySsa.csproj b/src/tests/JIT/opt/SSA/MemorySsa.csproj index f3e1cbd..501217e 100644 --- a/src/tests/JIT/opt/SSA/MemorySsa.csproj +++ b/src/tests/JIT/opt/SSA/MemorySsa.csproj @@ -1,8 +1,5 @@ - Exe - - None True diff --git a/src/tests/issues.targets b/src/tests/issues.targets index cfbfbd3..f2796be 100644 --- a/src/tests/issues.targets +++ b/src/tests/issues.targets @@ -17,6 +17,9 @@ https://github.com/dotnet/runtime/issues/80184 + + https://github.com/dotnet/runtime/issues/86112 + -- 2.7.4