From: Kunal Pathak Date: Fri, 12 May 2023 22:49:29 +0000 (-0700) Subject: Fix the test build error (#86176) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~2253 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6023c870e60ef45b704d2b6e850dce9e14d8d9a5;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix the test build error (#86176) Remove outputtype=exe, mark test as [Fact] --------- Co-authored-by: Mark Plesko --- 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 +