From f074557f003961ee8bd1a82db3d1e15757344d30 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Mon, 30 Jul 2018 23:54:21 +0200 Subject: [PATCH] Check all error codes of AppVeyor tests A test might return a different error code than 1, for example when a segfault occurs. --- build/tools/appveyor-test.bat | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/tools/appveyor-test.bat b/build/tools/appveyor-test.bat index 6a26e19fed..9e04331ea0 100755 --- a/build/tools/appveyor-test.bat +++ b/build/tools/appveyor-test.bat @@ -9,27 +9,27 @@ goto %TOOLSET% :msbuild PATH=C:\projects\wxwidgets\lib\vc_x64_dll;%PATH% .\vc_x64_mswudll\test.exe -if errorlevel 1 goto :error +if %errorlevel% NEQ 0 goto :error .\vc_x64_mswudll\test_gui.exe goto :eof :nmake if "%BUILD%"=="debug" set debug_suffix=d .\vc_mswu%debug_suffix%\test.exe -if errorlevel 1 goto :error +if %errorlevel% NEQ 0 goto :error .\vc_mswu%debug_suffix%\test_gui.exe goto :eof :mingw .\gcc_mswud\test.exe -if errorlevel 1 goto :error +if %errorlevel% NEQ 0 goto :error .\gcc_mswud\test_gui.exe goto :eof :msys2 PATH=C:\projects\wxwidgets\lib;%PATH% .\test.exe -if errorlevel 1 goto :error +if %errorlevel% NEQ 0 goto :error .\test_gui.exe goto :eof @@ -46,7 +46,7 @@ exit /b 0 if "%CONFIGURATION%"=="" set CONFIGURATION=Release cd ..\build_cmake ctest -V -C %CONFIGURATION% -R "test_[base|gui]" --interactive-debug-mode 0 . -if errorlevel 1 goto :error +if %errorlevel% NEQ 0 goto :error goto :eof :error