summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2008-02-25 04:23:33 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2008-02-25 04:23:33 (GMT)
commit3fb3d63f2e1fcf24ea1695f0231deb90f5e521ae (patch)
tree49184cff7de3a787faaa7ff98d4c6acd3a5d6fb6 /c++
parent47d9a73c2fcd47366cfbdd6ed5b7eb43ffc4fd49 (diff)
downloadhdf5-3fb3d63f2e1fcf24ea1695f0231deb90f5e521ae.zip
hdf5-3fb3d63f2e1fcf24ea1695f0231deb90f5e521ae.tar.gz
hdf5-3fb3d63f2e1fcf24ea1695f0231deb90f5e521ae.tar.bz2
[svn-r14640] Purpose:
Bug fix. Description: It used to clean out all *.h5 when done but this could cause a racing condition error if parallel make (e.g., gmake -j ...) is used because the "rm ... *.h5 ..." would remove *.h5 generaged and are still used by other test programs (e.g. xx_write/xx_read). Solution: Removed "*.h5" from the cleanup list since the test program has already taken care of removing temporary *.h5 generated. Tested platform: Kagiso. Not triple platforms tested since this is just a simple shell script change.
Diffstat (limited to 'c++')
-rwxr-xr-xc++/examples/testh5c++.sh.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/c++/examples/testh5c++.sh.in b/c++/examples/testh5c++.sh.in
index cfab0f0..c9474bf 100755
--- a/c++/examples/testh5c++.sh.in
+++ b/c++/examples/testh5c++.sh.in
@@ -55,9 +55,13 @@ prog2_o=${H5TOOL}_prog2.o
applib=libapp${H5TOOL}.a
# short hands
+# Caution: if some *.h5 files must be cleaned here, list them by names.
+# Don't use the wildcard form of *.h5 as it will wipe out even *.h5 generated
+# by otehr test programs. This will cause a racing condition error when
+# parallel make (e.g., gmake -j 4) is used.
temp_SRC="$hdf5main $appmain $prog1 $prog2"
temp_OBJ=`echo $temp_SRC | sed -e "s/\.${suffix}/.o/g"`
-temp_FILES="a.out *.h5 $applib"
+temp_FILES="a.out $applib"
# Generate appmain:
# An application Main that calls hdf5 and application's own functions.