diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2013-03-07 20:54:22 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2013-03-07 20:54:22 (GMT) |
commit | ebc8fa918ddb71a068754c168d338f70efa5c883 (patch) | |
tree | e8b2e101729bd15a0d324181ea5661e1b97f945d /test/testlibinfo.sh.in | |
parent | e4f8f911f653a355f515a0e7966e769c0c78da3e (diff) | |
download | hdf5-ebc8fa918ddb71a068754c168d338f70efa5c883.zip hdf5-ebc8fa918ddb71a068754c168d338f70efa5c883.tar.gz hdf5-ebc8fa918ddb71a068754c168d338f70efa5c883.tar.bz2 |
[svn-r23337] 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.
Diffstat (limited to 'test/testlibinfo.sh.in')
-rw-r--r-- | test/testlibinfo.sh.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in index fba1794..b7aa6c4 100644 --- a/test/testlibinfo.sh.in +++ b/test/testlibinfo.sh.in @@ -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, the strings command inspects library files. Older + # versions of strings may not know newer library format, resulting in + # command errors. Make it read the file as stdin to avoid the problem. + if strings < $1 | grep "SUMMARY OF THE HDF5 CONFIGURATION" > /dev/null; then echo " PASSED" else echo " FAILED" |