local gcStressModeToRestore=$COMPlus_GCStress;
local heapVerifyModeToRestore=$COMPlus_HeapVerify;
local readyToRunModeToRestore=$COMPlus_ReadyToRun;
+ local gcstandaloneModeToRestore=$COMPlus_GCName;
export COMPlus_GCStress=
export COMPlus_HeapVerify=
export COMPlus_ReadyToRun=
+ unset COMPlus_GCName
__Command=$_DebuggerFullPath
# Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
$__Command
__cg2ExitCode=$?
+ export COMPlus_GCName=$gcstandaloneModeToRestore
export COMPlus_GCStress=$gcStressModeToRestore
export COMPlus_HeapVerify=$heapVerifyModeToRestore
export COMPlus_ReadyToRun=$readyToRunModeToRestore
set COMPlus_HeapVerify=
set __readyToRunModeToRestore=!COMPlus_ReadyToRun!
set COMPlus_ReadyToRun=
+ set __gcStandaloneModeToRestore=!COMPlus_GCName!
+ set COMPlus_GCName=
set __Command=!_DebuggerFullPath!
REM Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
set COMPlus_GCStress=!__gcStressModeToRestore!
set COMPlus_HeapVerify=!__heapVerifyModeToRestore!
set COMPlus_ReadyToRun=!__readyToRunModeToRestore!
+ set COMPlus_GCName=!__gcStandaloneModeToRestore!
Exit /b 0
echo %scriptPath%\..\FolderA\FolderA\FolderA.dll>>%__ResponseFile%
echo %scriptPath%\..\FolderB\FolderB\FolderB.dll>>%__ResponseFile%
+ REM Suppress GC stand alone mode for the duration of Crossgen2 execution
+ set __gcStandaloneModeToRestore=!COMPlus_GCName!
+ set COMPlus_GCName=
+
set __Command=%_DebuggerFullPath%
REM Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
if defined __TestDotNetCmd (
set ExePath=multifolder\multifolder.dll
set COMPlus_NativeImageSearchPaths=%scriptPath%
+ set COMPlus_GCName=!__gcStandaloneModeToRestore!
]]></CLRTestBatchPreCommands>
<BashCLRTestPreCommands><![CDATA[
echo $__OutputDir/../FolderA/FolderA/FolderA.dll>>$__ResponseFile
echo $__OutputDir/../FolderB/FolderB/FolderB.dll>>$__ResponseFile
+ # Suppress GC standalone mode for the duration of Crossgen2 execution
+ local gcstandaloneModeToRestore=$COMPlus_GCName;
+ unset COMPlus_GCName
+
__Command=$_DebuggerFullPath
# Tests run locally need __TestDotNetCmd (set by runtest.py) or a compatible 5.0 dotnet runtime in the path
if [ ! -z ${__TestDotNetCmd+x} ] %3B then
ExePath=multifolder/multifolder.dll
export COMPlus_NativeImageSearchPaths=$__OutputDir
+ export COMPlus_GCName=$gcstandaloneModeToRestore
]]></BashCLRTestPreCommands>
</PropertyGroup>
string CoreLibAbsolutePath = Path.Combine(CoreRootVar, CoreLibFile);
string OutputFile = Path.GetTempFileName();
string TestDotNetCmdVar = Environment.GetEnvironmentVariable("__TestDotNetCmd");
+ // Unset COMPlus_GCName since standalone GC doesnt exist in official "dotnet" deployment
+ Environment.SetEnvironmentVariable("COMPlus_GCName", String.Empty);
string DotNetAbsolutePath = string.IsNullOrEmpty(TestDotNetCmdVar) ? FindExePath("dotnet") : TestDotNetCmdVar;
ProcessStartInfo processStartInfo = new ProcessStartInfo