Fix the test build error (#86176)
authorKunal Pathak <Kunal.Pathak@microsoft.com>
Fri, 12 May 2023 22:49:29 +0000 (15:49 -0700)
committerGitHub <noreply@github.com>
Fri, 12 May 2023 22:49:29 +0000 (15:49 -0700)
Remove outputtype=exe, mark test as [Fact]
---------

Co-authored-by: Mark Plesko <markples@microsoft.com>
src/tests/JIT/opt/SSA/MemorySsa.cs
src/tests/JIT/opt/SSA/MemorySsa.csproj
src/tests/issues.targets

index 9d2d46f..db67163 100644 (file)
@@ -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;
     }
index f3e1cbd..501217e 100644 (file)
@@ -1,8 +1,5 @@
 <Project Sdk="Microsoft.NET.Sdk">
   <PropertyGroup>
-    <OutputType>Exe</OutputType>
-  </PropertyGroup>
-  <PropertyGroup>
     <DebugType>None</DebugType>
     <Optimize>True</Optimize>
   </PropertyGroup>
index cfbfbd3..f2796be 100644 (file)
@@ -17,6 +17,9 @@
         <ExcludeList Include = "$(XunitTestBinBase)/JIT/opt/ValueNumbering/ExposedLocalsNumbering/**">
             <Issue>https://github.com/dotnet/runtime/issues/80184</Issue>
         </ExcludeList>
+        <ExcludeList Include = "$(XunitTestBinBase)/JIT/opt/SSA/MemorySsa/**">
+            <Issue>https://github.com/dotnet/runtime/issues/86112</Issue>
+        </ExcludeList>
     </ItemGroup>
 
     <!-- All OS/Arch CoreCLR excludes -->