Skip to content

Commit 3c5d5f0

Browse files
committed
Properly return exitcode when regression tests fails.
1 parent 18d82d0 commit 3c5d5f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/msvc/vcregress.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@echo off
2-
REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.3 2007/03/17 14:01:01 mha Exp $
2+
REM $PostgreSQL: pgsql/src/tools/msvc/vcregress.bat,v 1.4 2007/03/21 15:39:03 mha Exp $
33

44
SETLOCAL
55
SET STARTDIR=%CD%
@@ -30,9 +30,10 @@ SET PERL5LIB=..\..\tools\msvc
3030

3131
if "%what%"=="INSTALLCHECK" ..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --schedule=%SCHEDULE%_schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale
3232
if "%what%"=="CHECK" ..\..\..\%CONFIG%\pg_regress\pg_regress --psqldir=..\..\..\%CONFIG%\psql --schedule=%SCHEDULE%_schedule --multibyte=SQL_ASCII --load-language=plpgsql --no-locale --temp-install=./tmp_check --top-builddir=%TOPDIR% --temp-port=%TEMPPORT%
33+
SET E=%ERRORLEVEL%
3334

3435
cd %STARTDIR%
35-
goto :eof
36+
exit /b %E%
3637

3738
:usage
3839
echo "Usage: vcregress <check|installcheck> [schedule]"

0 commit comments

Comments
 (0)