Skip to content

Commit

Permalink
ICU-13813 Windows icucheck.bat script does not handle if the tests cr…
Browse files Browse the repository at this point in the history
…ash 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.
  • Loading branch information
jefgen authored Jul 18, 2018
1 parent 66b4b68 commit 472791d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions icu4c/source/allinone/icucheck.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 472791d

Please sign in to comment.