summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:16:45 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:16:45 (GMT)
commit1bd3635781b6ee98fe27548aa103e9c77173f846 (patch)
treee04d280a5e189fc742d60f773d6f43656528cf90 /test
parent0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6 (diff)
downloadhdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.zip
hdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.tar.gz
hdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.tar.bz2
[svn-r29880] Add HD to sleep function calls
Diffstat (limited to 'test')
-rw-r--r--test/ttsafe_cancel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ttsafe_cancel.c b/test/ttsafe_cancel.c
index 9bbec34..7f8cd53 100644
--- a/test/ttsafe_cancel.c
+++ b/test/ttsafe_cancel.c
@@ -161,7 +161,7 @@ void *tts_cancel_thread(void H5_ATTR_UNUSED *arg)
ret=H5Diterate(&buffer, H5T_NATIVE_INT, dataspace, tts_cancel_callback, &dataset);
assert(ret>=0);
- sleep(3);
+ HDsleep(3);
datavalue = 100;
ret=H5Dwrite(dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT, &datavalue);
@@ -190,7 +190,7 @@ herr_t tts_cancel_callback(void *elem, hid_t H5_ATTR_UNUSED type_id, unsigned H5
int ret;
tts_cancel_barrier();
- sleep(3);
+ HDsleep(3);
if (value != 1) {
TestErrPrintf("Error! Element value should be 1 and not %d\n", value);