Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ static void TestStackOverflow(string testName, string testArgs, out List<string>
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.Environment.Add("DOTNET_DbgEnableMiniDump", "0");
startInfo.Environment.Add("DOTNET_EnableCrashReport", "0");
startInfo.Environment.Add("DOTNET_LogStackOverflowExit", "1");
Comment thread
mdh1418 marked this conversation as resolved.

using Process testProcess = Process.Start(startInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down