From 4b4850223226ac2f0cd00b749a69c0cbf08d0993 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 15 Sep 2016 21:18:52 -0700 Subject: [PATCH] tools: run-tests: correctly test ERRORLEVEL --- tools/run-tests.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/run-tests.bat b/tools/run-tests.bat index 98a2e4b6..763fbb5f 100644 --- a/tools/run-tests.bat +++ b/tools/run-tests.bat @@ -1,6 +1,7 @@ @echo off setlocal +setlocal EnableDelayedExpansion set Configuration=Release if not X%1==X set Configuration=%1 @@ -36,7 +37,7 @@ for %%f in (winfsp-tests-x64 winfsp-tests-x86 :fsx-memfs-x64 :fsx-memfs-x86 :win call %%f popd - if errorlevel 1 ( + if !ERRORLEVEL! neq 0 ( set /a testfail=testfail+1 echo === Failed %%f