summaryrefslogtreecommitdiffstats
path: root/windows
diff options
context:
space:
mode:
authorScott Wegner <swegner@hdfgroup.org>2007-07-09 19:27:03 (GMT)
committerScott Wegner <swegner@hdfgroup.org>2007-07-09 19:27:03 (GMT)
commitcaa24a2a0568cf9337a4e3aebe4ff4653ce74ef7 (patch)
tree0d133b4c1d13d86b6663b2b59be69570354263f6 /windows
parentec7cf4de81316fd9fbf37890313b5697120f3e7a (diff)
downloadhdf5-caa24a2a0568cf9337a4e3aebe4ff4653ce74ef7.zip
hdf5-caa24a2a0568cf9337a4e3aebe4ff4653ce74ef7.tar.gz
hdf5-caa24a2a0568cf9337a4e3aebe4ff4653ce74ef7.tar.bz2
[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.
Diffstat (limited to 'windows')
-rwxr-xr-xwindows/tools/tooltest.bat3
1 files changed, 2 insertions, 1 deletions
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