diff --git a/src/tests/baseservices/exceptions/OutOfMemoryException/OutOfMemoryException.cs b/src/tests/baseservices/exceptions/OutOfMemoryException/OutOfMemoryException.cs index 49380b66b05f11..a67ef7233489fe 100644 --- a/src/tests/baseservices/exceptions/OutOfMemoryException/OutOfMemoryException.cs +++ b/src/tests/baseservices/exceptions/OutOfMemoryException/OutOfMemoryException.cs @@ -77,6 +77,7 @@ static int RunSubprocess(string allocateArg, string description) // 32 MB GC heap limit (0x2000000): small enough to exhaust quickly but large enough for startup. psi.Environment["DOTNET_GCHeapHardLimit"] = "0x2000000"; psi.Environment["DOTNET_DbgEnableMiniDump"] = "0"; + psi.Environment["DOTNET_EnableCrashReport"] = "0"; ProcessTextOutput output; try diff --git a/src/tests/baseservices/exceptions/simple/ParallelCrashTester.cs b/src/tests/baseservices/exceptions/simple/ParallelCrashTester.cs index c916fa18b95856..f40c12a3df9133 100644 --- a/src/tests/baseservices/exceptions/simple/ParallelCrashTester.cs +++ b/src/tests/baseservices/exceptions/simple/ParallelCrashTester.cs @@ -40,8 +40,9 @@ private static void RunParallelCrash(int arg) testProcess.StartInfo.FileName = Path.Combine(Environment.GetEnvironmentVariable("CORE_ROOT"), "corerun"); testProcess.StartInfo.Arguments = $"ParallelCrash.dll {arg}"; testProcess.StartInfo.UseShellExecute = false; - // Disable creating dump since the target process is expected to crash + // Disable crash diagnostics since the target process is expected to crash testProcess.StartInfo.Environment.Remove("DOTNET_DbgEnableMiniDump"); + testProcess.StartInfo.Environment.Remove("DOTNET_EnableCrashReport"); testProcess.Start(); testProcess.WaitForExit(); diff --git a/src/tests/baseservices/exceptions/stackoverflow/stackoverflowtester.cs b/src/tests/baseservices/exceptions/stackoverflow/stackoverflowtester.cs index de9137c1b5d182..ceb7a90bd0de68 100644 --- a/src/tests/baseservices/exceptions/stackoverflow/stackoverflowtester.cs +++ b/src/tests/baseservices/exceptions/stackoverflow/stackoverflowtester.cs @@ -23,6 +23,7 @@ static void TestStackOverflow(string testName, string testArgs, out List startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardError = true; startInfo.Environment.Add("DOTNET_DbgEnableMiniDump", "0"); + startInfo.Environment.Add("DOTNET_EnableCrashReport", "0"); startInfo.Environment.Add("DOTNET_LogStackOverflowExit", "1"); using Process testProcess = Process.Start(startInfo); diff --git a/src/tests/baseservices/exceptions/unhandled/unhandledTester.cs b/src/tests/baseservices/exceptions/unhandled/unhandledTester.cs index 24e17ec6de542f..78cf4837ab1735 100644 --- a/src/tests/baseservices/exceptions/unhandled/unhandledTester.cs +++ b/src/tests/baseservices/exceptions/unhandled/unhandledTester.cs @@ -22,8 +22,9 @@ static void RunExternalProcess(string unhandledType, string assembly) startInfo.Arguments = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), assembly) + " " + unhandledType; startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardError = true; - // Disable creating dump since the target process is expected to fail with an unhandled exception + // Disable crash diagnostics since the target process is expected to fail with an unhandled exception startInfo.Environment.Remove("DOTNET_DbgEnableMiniDump"); + startInfo.Environment.Remove("DOTNET_EnableCrashReport"); ProcessTextOutput result = Process.RunAndCaptureText(startInfo); Console.WriteLine($"Test process {assembly} with argument {unhandledType} exited");