summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-12 18:40:51 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-12 18:40:51 (GMT)
commit4d834adba4aeb1a0174bddb83212b7073b64e269 (patch)
tree4ddac07e5fa48c592c5b8450535b5ac7d62c55b9 /test
parente8de6a46e210d56bf2c1d5b8d5ea255d0ab2e768 (diff)
downloadhdf5-4d834adba4aeb1a0174bddb83212b7073b64e269.zip
hdf5-4d834adba4aeb1a0174bddb83212b7073b64e269.tar.gz
hdf5-4d834adba4aeb1a0174bddb83212b7073b64e269.tar.bz2
Use HD prefix.
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/dsets.c b/test/dsets.c
index d33b7db..eaa469f 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -7066,9 +7066,9 @@ make_random_offset_and_increment(long nelts, long *offsetp, long *incp)
{
long inc;
- assert(0 < nelts);
+ HDassert(0 < nelts);
- *offsetp = random() % nelts;
+ *offsetp = HDrandom() % nelts;
/* `maxinc` is chosen so that for any `x` in [0, nelts - 1],
* `x + maxinc` does not overflow a long.
@@ -7081,7 +7081,7 @@ make_random_offset_and_increment(long nelts, long *offsetp, long *incp)
* number.
*/
do {
- inc = 1 + random() % maxinc;
+ inc = 1 + HDrandom() % maxinc;
} while (gcd(inc, nelts) != 1);
*incp = inc;
@@ -7163,7 +7163,7 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
chunk_row = ofs / cols;
chunk_col = ofs % cols;
ofs = (ofs + inc) % (rows * cols);
- assert(!check2[chunk_row][chunk_col]);
+ HDassert(!check2[chunk_row][chunk_col]);
wbuf[i] = check2[chunk_row][chunk_col] = chunk_row+chunk_col+1;
coord[i][0] = (hsize_t)chunk_row * csize[0];
@@ -7290,7 +7290,7 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
chunk_row = ofs / cols;
chunk_col = ofs % cols;
ofs = (ofs + inc) % (rows * cols);
- assert(!check2[chunk_row][chunk_col]);
+ HDassert(!check2[chunk_row][chunk_col]);
wbuf[i] = check2[chunk_row][chunk_col] = chunk_row + chunk_col + 1;
coord[i][0] = (hsize_t)chunk_row * csize[0];
@@ -7400,7 +7400,7 @@ test_random_chunks_real(const char *testname, hbool_t early_alloc, hid_t fapl)
chunk_row = ofs / cols;
chunk_col = ofs % cols;
ofs = (ofs + inc) % (rows * cols);
- assert(!check2[chunk_row][chunk_col]);
+ HDassert(!check2[chunk_row][chunk_col]);
wbuf[i] = check2[chunk_row][chunk_col] = chunk_row + chunk_col + 1;
coord[i][0] = (hsize_t)chunk_row * csize[0];
@@ -9522,7 +9522,7 @@ test_fixed_array(hid_t fapl)
chunk_row = ofs / cols;
chunk_col = ofs % cols;
ofs = (ofs + inc) % (rows * cols);
- assert(!chunks[chunk_row][chunk_col]);
+ HDassert(!chunks[chunk_row][chunk_col]);
wbuf[i] = chunks[chunk_row][chunk_col] = chunk_row+chunk_col+1;
coord[i][0] = (hsize_t)chunk_row * chunk_dim2[0];
@@ -9651,7 +9651,7 @@ test_fixed_array(hid_t fapl)
chunk_row = ofs / cols;
chunk_col = ofs % cols;
ofs = (ofs + inc) % (rows * cols);
- assert(!chunks_big[chunk_row][chunk_col]);
+ HDassert(!chunks_big[chunk_row][chunk_col]);
wbuf_big[i] = chunks_big[chunk_row][chunk_col] = chunk_row+chunk_col+1;
coord_big[i][0] = (hsize_t)chunk_row * chunk_dim2[0];