summaryrefslogtreecommitdiffstats
path: root/test/testvfdswmr.sh.in
diff options
context:
space:
mode:
authorvchoi-hdfgroup <55293060+vchoi-hdfgroup@users.noreply.github.com>2021-04-13 19:05:00 (GMT)
committerGitHub <noreply@github.com>2021-04-13 19:05:00 (GMT)
commit791b9893e48c0e1d77314a816babe635d54cfef9 (patch)
treec664c8e2d92de51db3ec39f016cbc3dfbc0f866c /test/testvfdswmr.sh.in
parentd6227619a91ad361ff0fb2f1b3b9a9494ee66892 (diff)
parent62198a3ee104e897d057a96471e6444ffff4eaa3 (diff)
downloadhdf5-791b9893e48c0e1d77314a816babe635d54cfef9.zip
hdf5-791b9893e48c0e1d77314a816babe635d54cfef9.tar.gz
hdf5-791b9893e48c0e1d77314a816babe635d54cfef9.tar.bz2
Merge pull request #6 from vchoi-hdfgroup/feature/vfd_swmr
Feature/vfd swmr
Diffstat (limited to 'test/testvfdswmr.sh.in')
-rw-r--r--test/testvfdswmr.sh.in14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in
index 42932b0..c64f9de 100644
--- a/test/testvfdswmr.sh.in
+++ b/test/testvfdswmr.sh.in
@@ -582,16 +582,16 @@ done
# read and written by VFD SWMR.
#
if [ ${do_zoo:-no} = yes ]; then
- [ -e ./fifo ] && rm -f ./fifo
- mkfifo -m 0600 ./fifo
rm -f ./shared_tick_num
echo launch vfd_swmr_zoo_writer
- STDIN_PATH="./fifo" catch_out_err_and_rc vfd_swmr_zoo_writer \
- ../vfd_swmr_zoo_writer -m 1000 -q &
+ catch_out_err_and_rc vfd_swmr_zoo_writer \
+ ../vfd_swmr_zoo_writer -q &
pid_writer=$!
- STDOUT_PATH="./fifo" catch_out_err_and_rc vfd_swmr_zoo_reader \
- ../vfd_swmr_zoo_reader -q -W &
+ # -l is the expected maximal number of ticks from the writer's finishing zoo creation or deletion
+ # to the reader's finishing validation of zoo creation or deletion
+ catch_out_err_and_rc vfd_swmr_zoo_reader \
+ ../vfd_swmr_zoo_reader -l 4 -q &
pid_reader=$!
# Wait for the reader to finish before signalling the
@@ -599,7 +599,6 @@ if [ ${do_zoo:-no} = yes ]; then
# reader will find the shadow file when it opens
# the .h5 file.
wait $pid_reader
- kill -USR1 $(cat vfd_swmr_zoo_writer.pid)
wait $pid_writer
# Collect exit code of the reader
@@ -615,7 +614,6 @@ if [ ${do_zoo:-no} = yes ]; then
fi
# Clean up output files
- rm -f ./fifo
rm -f vfd_swmr_zoo_writer.{out,rc}
rm -f vfd_swmr_zoo_reader.*.{out,rc}
fi