mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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:
parent
ec7cf4de81
commit
caa24a2a05
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user