diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:16:45 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-05-04 16:16:45 (GMT) |
commit | 1bd3635781b6ee98fe27548aa103e9c77173f846 (patch) | |
tree | e04d280a5e189fc742d60f773d6f43656528cf90 | |
parent | 0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6 (diff) | |
download | hdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.zip hdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.tar.gz hdf5-1bd3635781b6ee98fe27548aa103e9c77173f846.tar.bz2 |
[svn-r29880] Add HD to sleep function calls
-rw-r--r-- | test/ttsafe_cancel.c | 4 | ||||
-rw-r--r-- | testpar/t_shapesame.c | 2 | ||||
-rw-r--r-- | testpar/t_span_tree.c | 2 | ||||
-rw-r--r-- | testpar/testphdf5.c | 2 |
4 files changed, 5 insertions, 5 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); diff --git a/testpar/t_shapesame.c b/testpar/t_shapesame.c index 8be1610..ec46904 100644 --- a/testpar/t_shapesame.c +++ b/testpar/t_shapesame.c @@ -4764,7 +4764,7 @@ void pause_proc(void) } printf("waiting(%ds) for file %s ...\n", time_int, greenlight); fflush(stdout); - sleep(time_int); + HDsleep(time_int); } MPI_Barrier(MPI_COMM_WORLD); } diff --git a/testpar/t_span_tree.c b/testpar/t_span_tree.c index 6e233a9..f1487eb 100644 --- a/testpar/t_span_tree.c +++ b/testpar/t_span_tree.c @@ -2615,7 +2615,7 @@ lower_dim_size_comp_test(void) int use_collective_io = 1; hid_t dset_type = H5T_NATIVE_UINT; #if 0 - sleep(60); + HDsleep(60); #endif HDcompile_assert(sizeof(uint32_t) == sizeof(unsigned)); for ( use_collective_io = (hbool_t)0; diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index b7a68d9..8cf29f3 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -88,7 +88,7 @@ void pause_proc(void) } printf("waiting(%ds) for file %s ...\n", time_int, greenlight); fflush(stdout); - sleep(time_int); + HDsleep(time_int); } MPI_Barrier(MPI_COMM_WORLD); } |