mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
parent
5b959f0bf9
commit
110d933a57
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user