Enable DwarfDump AOT test in Release (#82862)
authorAndy Gocke <angocke@microsoft.com>
Thu, 9 Mar 2023 21:45:56 +0000 (13:45 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2023 21:45:56 +0000 (13:45 -0800)
* Enable DwarfDump AOT test in Release

There are some reports (#82802) that debugging might be particularly bad
in Release.

* Update warning counts for Release

src/tests/nativeaot/SmokeTests/DwarfDump/DwarfDump.csproj
src/tests/nativeaot/SmokeTests/DwarfDump/Program.cs

index 783b9db..abb451d 100644 (file)
@@ -4,8 +4,8 @@
     <OutputType>Exe</OutputType>
     <CLRTestKind>BuildAndRun</CLRTestKind>
     <CLRTestPriority>0</CLRTestPriority>
-    <!-- Test checks symbols, so don't run in non-debug builds. -->
-    <CLRTestTargetUnsupported Condition="'$(Configuration)' != 'Debug' or '$(TargetOS)' != 'linux'">true</CLRTestTargetUnsupported>
+    <!-- Currently only tracking DWARF info on Linux -->
+    <CLRTestTargetUnsupported Condition="'$(TargetOS)' != 'linux'">true</CLRTestTargetUnsupported>
   </PropertyGroup>
 
   <ItemGroup>
index 290c499..f0996dd 100644 (file)
@@ -50,8 +50,13 @@ public class Program
         });
 
         // Just count the number of warnings and errors. There are so many right now that it's not worth enumerating the list
+#if DEBUG
         const int MinWarnings = 17000;
         const int MaxWarnings = 18500;
+#else
+        const int MinWarnings = 12000;
+        const int MaxWarnings = 13000;
+#endif
         int count = 0;
         string line;
         while ((line = proc.StandardOutput.ReadLine()) != null)