Rework rejit test to ensure subprocess environment is suitable (#36420)
authorAndy Ayers <andya@microsoft.com>
Thu, 14 May 2020 08:09:25 +0000 (01:09 -0700)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 08:09:25 +0000 (01:09 -0700)
commitbdd7235c43d762cea051cfc2071e14de48175f0c
tree22fa103583dcf632379aed8a4cf119974e577ab7
parent518d36145281435b2e46138506a8411fb3a40017
Rework rejit test to ensure subprocess environment is suitable (#36420)

This test is optimization sensitive, but it invokes a subprocess that
will inherit environment variables like `COMPlus_JITMinOpts` that can impact
optimization of code jitted in the subprocess and cause the test to fail.

So, update the parent process code to override `COMPlus_JITMinOpts` and
`COMPlus_JitStress` for the child process.

Closes #35742.
src/coreclr/tests/src/profiler/common/ProfilerTestRunner.cs
src/coreclr/tests/src/profiler/rejit/rejit.cs