Enable StressLog for subprocess in EventPipe tests (#45425)
authorJohn Salem <josalem@microsoft.com>
Tue, 8 Dec 2020 01:21:04 +0000 (17:21 -0800)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 01:21:04 +0000 (17:21 -0800)
src/tests/tracing/eventpipe/common/IpcUtils.cs

index 554037c..8dc8da2 100644 (file)
@@ -67,6 +67,9 @@ namespace Tracing.Tests.Common
 
                 process.StartInfo.UseShellExecute = false;
                 process.StartInfo.CreateNoWindow = true;
+                process.StartInfo.Environment.Add("COMPlus_StressLog",   "1");    // Turn on stresslog for subprocess
+                process.StartInfo.Environment.Add("COMPlus_LogFacility", "1000"); // Diagnostics Server Log Facility
+                process.StartInfo.Environment.Add("COMPlus_LogLevel",    "10");   // Log everything
                 foreach ((string key, string value) in environment)
                     process.StartInfo.Environment.Add(key, value);
                 process.StartInfo.FileName = Process.GetCurrentProcess().MainModule.FileName;