[svn-r23329] Bug fix: HDFFV-8305

Some systems, like Mac, strings inspect library files and older versions
of strings maybe know newer library format, resulting in errors.
Make it read the file as stdin, avoiding this problem. 

Tested: h5committest. all passed.
This commit is contained in:
Albert Cheng 2013-03-06 01:13:45 -05:00
parent 5b959f0bf9
commit 110d933a57

View File

@ -53,7 +53,10 @@ SKIP() {
# Function definitions
CHECK_LIBINFO(){
LINEMSG $1
if strings $1 | grep "SUMMARY OF THE HDF5 CONFIGURATION" > /dev/null; then
# Some systems, like Mac, strings inspect library files and older versions
# of strings maybe know newer library format, resulting in errors.
# Make it read the file as stdin, avoiding this problem.
if strings < $1 | grep "SUMMARY OF THE HDF5 CONFIGURATION" > /dev/null; then
echo " PASSED"
else
echo " FAILED"