summaryrefslogtreecommitdiffstats
path: root/test/testflushrefresh.sh.in
diff options
context:
space:
mode:
authorlrknox <lrknox>2017-03-22 03:58:41 (GMT)
committerlrknox <lrknox>2017-03-22 03:58:41 (GMT)
commitb461f1818b91ffafea3ca8b4ec984cb57d2e00db (patch)
tree9b72d2a1e16adc09e505551f876deb747f3daa2e /test/testflushrefresh.sh.in
parentfa5ca5272d7aa6f25656541b72a24697b36dd52b (diff)
downloadhdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.zip
hdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.tar.gz
hdf5-b461f1818b91ffafea3ca8b4ec984cb57d2e00db.tar.bz2
Run all scripts using signal files between processes in their own directories to avoid accidental deletion of the signal files.
Diffstat (limited to 'test/testflushrefresh.sh.in')
-rw-r--r--test/testflushrefresh.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testflushrefresh.sh.in b/test/testflushrefresh.sh.in
index e7917a0..d894cee 100644
--- a/test/testflushrefresh.sh.in
+++ b/test/testflushrefresh.sh.in
@@ -84,7 +84,7 @@ fi
# different, occasionally the wrong file is deleted, interrupting the flow of
# the test. Running each of these tests in its own directory should eliminate
# the problem.
-mkdir -p flushrefresh_test/.libs
+mkdir flushrefresh_test
cp flushrefresh flushrefresh_test
# With the --disable-shared option, flushrefresh is built in the test directory,
@@ -92,6 +92,7 @@ cp flushrefresh flushrefresh_test
# the test directory. test/flushrefresh should always be copied,
# .libs/flushrefresh should be copied only if it exists.
if [ -f .libs/flushrefresh ]; then
+ mkdir flushrefresh_test/.libs
cp .libs/flushrefresh flushrefresh_test/.libs
fi
cd flushrefresh_test
@@ -210,6 +211,10 @@ fi
if test $nerrors -eq 0 ; then
echo "flush/refresh objects tests passed."
+ if test -z "$HDF5_NOCLEANUP"; then
+ # delete the test directory
+ rm -rf flushrefresh_test
+ fi
exit 0
else
echo "flush/refresh objects tests failed with $nerrors errors."