[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.
This commit is contained in:
Scott Wegner 2007-07-09 14:27:03 -05:00
parent ec7cf4de81
commit caa24a2a05

View File

@ -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