summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2013-03-06 06:13:45 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2013-03-06 06:13:45 (GMT)
commit110d933a5720f4d9ad84cee8eac0ada7e8ffc956 (patch)
tree36cdb8b28fc04d69cb53f69c6560ad9199fab96c
parent5b959f0bf95b0a50933e57cee0c1e86a318f6d39 (diff)
downloadhdf5-110d933a5720f4d9ad84cee8eac0ada7e8ffc956.zip
hdf5-110d933a5720f4d9ad84cee8eac0ada7e8ffc956.tar.gz
hdf5-110d933a5720f4d9ad84cee8eac0ada7e8ffc956.tar.bz2
[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.
-rw-r--r--test/testlibinfo.sh.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/testlibinfo.sh.in b/test/testlibinfo.sh.in
index fba1794..f268b13 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, 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"