From 472791d6eae7637186bd04485e748c5d68861117 Mon Sep 17 00:00:00 2001 From: Jeff Genovy Date: Wed, 18 Jul 2018 12:15:43 -0700 Subject: [PATCH] ICU-13813 Windows icucheck.bat script does not handle if the tests crash while executing. (#12) Fix the `icucheck.bat` script (used to run the ICU4C tests on Windows) so that it handles the case where a test crashes while executing. --- icu4c/source/allinone/icucheck.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/icu4c/source/allinone/icucheck.bat b/icu4c/source/allinone/icucheck.bat index 119bc99b4160..9fc56fa03c23 100644 --- a/icu4c/source/allinone/icucheck.bat +++ b/icu4c/source/allinone/icucheck.bat @@ -52,7 +52,7 @@ set ICUFAILCNT=0 @echo ==== %THT% ========================================================================= %ICUINFO_CMD% %ICUINFO_OPTS% -@IF NOT ERRORLEVEL 1 GOTO OK_%THT% +@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT% @set ICUFAILED=%ICUFAILED% %THT% @set ICUFAILCNT=1 :OK_icuinfo @@ -63,7 +63,7 @@ set ICUFAILCNT=0 @cd %ICU_ICUDIR%\source\test\intltest %INTLTEST_CMD% %INTLTEST_OPTS% -@IF NOT ERRORLEVEL 1 GOTO OK_%THT% +@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT% @set ICUFAILED=%ICUFAILED% %THT% @set ICUFAILCNT=1 :OK_intltest @@ -74,7 +74,7 @@ set ICUFAILCNT=0 @cd %ICU_ICUDIR%\source\test\iotest %IOTEST_CMD% %IOTEST_OPTS% -@IF NOT ERRORLEVEL 1 GOTO OK_%THT% +@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT% @set ICUFAILED=%ICUFAILED% %THT% @set ICUFAILCNT=1 :OK_IOTEST @@ -85,7 +85,7 @@ set ICUFAILCNT=0 @cd %ICU_ICUDIR%\source\test\cintltst %CINTLTST_CMD% %CINTLTST_OPTS% -@IF NOT ERRORLEVEL 1 GOTO OK_%THT% +@IF %ERRORLEVEL% EQU 0 GOTO OK_%THT% @set ICUFAILED=%ICUFAILED% %THT% @set ICUFAILCNT=1 :OK_cintltst @@ -97,7 +97,7 @@ set ICUFAILCNT=0 @REM @cd %ICU_ICUDIR%\source\test\letest @REM %LETST_CMD% %LETEST_OPTS% -@REM @IF NOT ERRORLEVEL 1 GOTO OK_%THT% +@REM @IF %ERRORLEVEL% EQU 0 GOTO OK_%THT% @REM @set ICUFAILED=%ICUFAILED% %THT% @REM @set ICUFAILCNT=1 @REM :OK_letest