From caa24a2a0568cf9337a4e3aebe4ff4653ce74ef7 Mon Sep 17 00:00:00 2001 From: Scott Wegner Date: Mon, 9 Jul 2007 14:27:03 -0500 Subject: [svn-r13958] Purpose: Fix subtle bug in Windows test script Description: Our Windows test script was using "ERRORLEVEL" to check the diff output for our tooltests. However, FC does not actually set ERRORLEVEL with valid input. As a work around, we pipe the output into FIND, which sets the ERRORLEVEL if it doesn't find a valid string. We probably never saw this bug before because h5dump sets the ERRORLEVEL. Tested: WinXP. --- windows/tools/tooltest.bat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/tools/tooltest.bat b/windows/tools/tooltest.bat index ed6a4d7..827f9df 100755 --- a/windows/tools/tooltest.bat +++ b/windows/tools/tooltest.bat @@ -281,7 +281,8 @@ ::Echo tests results ::------------------- fc %exp_file% %actual_output% > ..\..\temp_fc.txt - if %ERRORLEVEL%==0 ( + type ..\..\temp_fc.txt | find "FC: no dif" > nul + if not errorlevel 1 ( set result=PASSED ) else ( set result=FAILED -- cgit v0.12