summaryrefslogtreecommitdiffstats
path: root/tools/test/perform
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /tools/test/perform
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'tools/test/perform')
-rw-r--r--tools/test/perform/iopipe.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/tools/test/perform/iopipe.c b/tools/test/perform/iopipe.c
index c61e6a9..b815939 100644
--- a/tools/test/perform/iopipe.c
+++ b/tools/test/perform/iopipe.c
@@ -100,10 +100,10 @@ synchronize(void)
int H5_ATTR_NDEBUG_UNUSED status;
status = HDsystem("sync");
- HDassert(status >= 0);
+ assert(status >= 0);
status = HDsystem("df >/dev/null");
- HDassert(status >= 0);
+ assert(status >= 0);
#endif
}
@@ -150,15 +150,15 @@ main(void)
/* Open the files */
file = H5Fcreate(HDF5_FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
- HDassert(file >= 0);
+ assert(file >= 0);
fd = HDopen(RAW_FILE_NAME, O_RDWR | O_CREAT | O_TRUNC, 0666);
- HDassert(fd >= 0);
+ assert(fd >= 0);
/* Create the dataset */
file_space = H5Screate_simple(2, size, size);
- HDassert(file_space >= 0);
+ assert(file_space >= 0);
dset = H5Dcreate2(file, "dset", H5T_NATIVE_UCHAR, file_space, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
- HDassert(dset >= 0);
+ assert(dset >= 0);
the_data = (unsigned char *)HDmalloc((size_t)(size[0] * size[1]));
/* initial fill for lazy malloc */
@@ -198,7 +198,7 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
status = H5Dread(dset, H5T_NATIVE_UCHAR, file_space, file_space, H5P_DEFAULT, the_data);
- HDassert(status >= 0);
+ assert(status >= 0);
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);
@@ -222,9 +222,9 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
offset = HDlseek(fd, (off_t)0, SEEK_SET);
- HDassert(0 == offset);
+ assert(0 == offset);
n = HDwrite(fd, the_data, (size_t)(size[0] * size[1]));
- HDassert(n >= 0 && (size_t)n == (size[0] * size[1]));
+ assert(n >= 0 && (size_t)n == (size[0] * size[1]));
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);
@@ -248,7 +248,7 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
status = H5Dwrite(dset, H5T_NATIVE_UCHAR, H5S_ALL, H5S_ALL, H5P_DEFAULT, the_data);
- HDassert(status >= 0);
+ assert(status >= 0);
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);
@@ -272,9 +272,9 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
offset = HDlseek(fd, (off_t)0, SEEK_SET);
- HDassert(0 == offset);
+ assert(0 == offset);
n = HDread(fd, the_data, (size_t)(size[0] * size[1]));
- HDassert(n >= 0 && (size_t)n == (size[0] * size[1]));
+ assert(n >= 0 && (size_t)n == (size[0] * size[1]));
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);
@@ -298,7 +298,7 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
status = H5Dread(dset, H5T_NATIVE_UCHAR, file_space, file_space, H5P_DEFAULT, the_data);
- HDassert(status >= 0);
+ assert(status >= 0);
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);
@@ -312,11 +312,11 @@ main(void)
t_start, t_stop, (size_t)(nread * size[0] * size[1]));
/* Read hyperslab */
- HDassert(size[0] > 20 && size[1] > 20);
+ assert(size[0] > 20 && size[1] > 20);
start[0] = start[1] = 10;
count[0] = count[1] = size[0] - 20;
status = H5Sselect_hyperslab(file_space, H5S_SELECT_SET, start, NULL, count, NULL);
- HDassert(status >= 0);
+ assert(status >= 0);
synchronize();
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_start);
@@ -327,7 +327,7 @@ main(void)
HDputc(PROGRESS, stderr);
HDfflush(stderr);
status = H5Dread(dset, H5T_NATIVE_UCHAR, file_space, file_space, H5P_DEFAULT, the_data);
- HDassert(status >= 0);
+ assert(status >= 0);
}
#ifdef H5_HAVE_GETRUSAGE
HDgetrusage(RUSAGE_SELF, &r_stop);