Skip to content

Commit

Permalink
Disable dump creation for ParallelCrashTester child (dotnet#97095)
Browse files Browse the repository at this point in the history
The child process is intentionally crashing, so creating a dump for it
is a waste of time and disk space and it also seems to be causing random
failures of the test in the CI.

This change disables the dump creation for it.
  • Loading branch information
janvorli authored and tmds committed Jan 23, 2024
1 parent 49e3928 commit 15c7927
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ 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
testProcess.StartInfo.Environment.Remove("DOTNET_DbgEnableMiniDump");
testProcess.Start();
testProcess.WaitForExit();

Expand Down

0 comments on commit 15c7927

Please sign in to comment.