summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Chen (CLR) <jochen@microsoft.com>2016-06-15 11:11:37 -0700
committerJohn Chen (CLR) <jochen@microsoft.com>2016-06-15 11:11:37 -0700
commitd33d62e74cd8577420160685190e5c1eabfed9bb (patch)
treec20c62967c02a8779f6e89e28a758de095b0ee59 /tests
parent25b1e6a9eb3cac4abadaf1a65d7a75448cc7597e (diff)
downloadcoreclr-d33d62e74cd8577420160685190e5c1eabfed9bb.tar.gz
coreclr-d33d62e74cd8577420160685190e5c1eabfed9bb.tar.bz2
coreclr-d33d62e74cd8577420160685190e5c1eabfed9bb.zip
Modify CrossGen test script to work around cmd.exe bug
Diffstat (limited to 'tests')
-rw-r--r--tests/src/CLRTest.CrossGen.targets13
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/src/CLRTest.CrossGen.targets b/tests/src/CLRTest.CrossGen.targets
index 9d0f28c69d..4bb86639dc 100644
--- a/tests/src/CLRTest.CrossGen.targets
+++ b/tests/src/CLRTest.CrossGen.targets
@@ -75,16 +75,17 @@ if defined RunCrossGen (
set COMPlus_ZapRequireList=$(MSBuildProjectName)
if not exist "$(MSBuildProjectName).ni.exe" (
call :TakeLock
+ set CrossGenStatus=0
if not exist "$(MSBuildProjectName).ni.exe" (
echo "%_DebuggerFullPath% %CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%~dp0 $(MSBuildProjectName).exe
%_DebuggerFullPath% "%CORE_ROOT%\crossgen.exe" /Platform_Assemblies_Paths %CORE_ROOT%%3B%~dp0 $(MSBuildProjectName).exe
- IF NOT !ERRORLEVEL!==0 (
- ECHO Crossgen failed with exitcode - !ERRORLEVEL!
- call :ReleaseLock
+ set CrossGenStatus=!ERRORLEVEL!
+ )
+ call :ReleaseLock
+ IF NOT !CrossGenStatus!==0 (
+ ECHO Crossgen failed with exitcode - !CrossGenStatus!
Exit /b 1
- )
- )
- call :ReleaseLock
+ )
)
)
]]>