Fix timeouts in coreroot_determinism test in GC stress mode (#56770)
authorTomáš Rylek <trylek@microsoft.com>
Tue, 3 Aug 2021 20:13:25 +0000 (22:13 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Aug 2021 20:13:25 +0000 (22:13 +0200)
commit90edb169b3cf4df5538b1d32e0de39cccef1436f
treee840321efd580205da3e737a8a1fc7e621315fba
parent4b3db59e280562d56a6a77e6aa94d7333137b14d
Fix timeouts in coreroot_determinism test in GC stress mode (#56770)

I have found two deficiencies in our CoreCLR test infrastructure
related to running Crossgen2 in GC stress mode; this change should
fix both:

1) In the Unix (bash) variant of Execute.Crossgen.targets we weren't
properly unsetting the GC stress-related COMPlus environment
variables.

2) In the particular case of the coreroot_determinism test this
needed fixing in r2rtest that is internally used by the test
implementation (on both Windows and Unix).

Thanks

Tomas
src/coreclr/tools/r2rtest/Crossgen2Runner.cs
src/tests/Common/CLRTest.CrossGen.targets