1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

Visual Studio Projects: Exit build with failure on tests or source check fails

This commit is contained in:
Mark Pizzolato 2023-06-23 10:28:02 -10:00
parent c331284b7c
commit 9392ce3974

View File

@ -56,6 +56,9 @@ goto _check_source
:_got_script
%2 "%_script_path%" "%4"
rem if the simulator test(s) fail then this is a failed build
rem so delete the simulator binary.
if ERRORLEVEL 1 del %2 & exit /B 1
:_check_source
setlocal enabledelayedexpansion
@ -74,4 +77,4 @@ del %_project_linedeps%
echo Checking Source in %~n2 simulator...
%2 %_deps_switches% CheckSourceCode %_deps_line%
set _deps_line=
if errorlevel 1 exit /B 1
if errorlevel 1 del %2 & exit /B 1