summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2007-07-10 20:26:42 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2007-07-10 20:26:42 (GMT)
commit859da34e932a1a8acf662626db1c99c0f70e31d8 (patch)
treed6b0ec09974feede16762f5b080eec9e949a1b21
parent6d2a1448520c4e5ff6f7610c26bb943ef3e361e1 (diff)
downloadhdf5-859da34e932a1a8acf662626db1c99c0f70e31d8.zip
hdf5-859da34e932a1a8acf662626db1c99c0f70e31d8.tar.gz
hdf5-859da34e932a1a8acf662626db1c99c0f70e31d8.tar.bz2
[svn-r13962] 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. h5_write/h5_read). Solution: Removed "*.h5" from the cleanup list since the test program has already taken care of removing temporary *.h5 generated. Tested platform: Kagiso, both serial and parallel. Not triple platforms tested since this is just a simple shell script change.
-rwxr-xr-xexamples/testh5cc.sh.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in
index b3d5575..064f0d2 100755
--- a/examples/testh5cc.sh.in
+++ b/examples/testh5cc.sh.in
@@ -60,9 +60,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.