Enable new exception handling in .NET 9 SOS testing (#4817)
authorMike McLaughlin <mikem@microsoft.com>
Wed, 4 Sep 2024 18:23:53 +0000 (11:23 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Sep 2024 18:23:53 +0000 (11:23 -0700)
src/SOS/SOS.UnitTests/SOSRunner.cs

index 9f3aee8dcba574a5a3ef31ceac462246f03b6ac6..5511fe2ed6adbcac84a5345105a39584eefbdd27 100644 (file)
@@ -320,7 +320,6 @@ public class SOSRunner : IDisposable
                 ProcessRunner processRunner = new ProcessRunner(exePath, ReplaceVariables(variables, arguments.ToString())).
                     WithEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0").
                     WithEnvironmentVariable("DOTNET_ROOT", config.DotNetRoot).
-                    WithEnvironmentVariable("DOTNET_LegacyExceptionHandling", "1").
                     WithRuntimeConfiguration("DbgEnableElfDumpOnMacOS", "1").
                     WithLog(new TestRunner.TestLogger(outputHelper.IndentedOutput)).
                     WithTimeout(TimeSpan.FromMinutes(10));
@@ -680,7 +679,6 @@ public class SOSRunner : IDisposable
             ProcessRunner processRunner = new ProcessRunner(debuggerPath, ReplaceVariables(variables, arguments.ToString())).
                 WithEnvironmentVariable("DOTNET_MULTILEVEL_LOOKUP", "0").
                 WithEnvironmentVariable("DOTNET_ROOT", config.DotNetRoot).
-                WithEnvironmentVariable("DOTNET_LegacyExceptionHandling", "1").
                 WithLog(scriptLogger).
                 WithTimeout(TimeSpan.FromMinutes(10));