summaryrefslogtreecommitdiffstats
path: root/test/gen_plist.c
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 /test/gen_plist.c
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 'test/gen_plist.c')
-rw-r--r--test/gen_plist.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/gen_plist.c b/test/gen_plist.c
index 5302dc7..0892755 100644
--- a/test/gen_plist.c
+++ b/test/gen_plist.c
@@ -457,23 +457,23 @@ encode_plist(hid_t plist_id, int little_endian, int word_length, const char *fil
/* Generate filename */
if ((ret = HDsnprintf(filename, sizeof(filename), "%s%d%s", filename_prefix, word_length,
little_endian ? "le" : "be")) < 0)
- HDassert(ret > 0);
+ assert(ret > 0);
/* first call to encode returns only the size of the buffer needed */
if ((ret = H5Pencode2(plist_id, NULL, &temp_size, H5P_DEFAULT)) < 0)
- HDassert(ret > 0);
+ assert(ret > 0);
temp_buf = (void *)HDmalloc(temp_size);
- HDassert(temp_buf);
+ assert(temp_buf);
if ((ret = H5Pencode2(plist_id, temp_buf, &temp_size, H5P_DEFAULT)) < 0)
- HDassert(ret > 0);
+ assert(ret > 0);
fd = HDopen(filename, O_RDWR | O_CREAT | O_TRUNC, H5_POSIX_CREATE_MODE_RW);
- HDassert(fd >= 0);
+ assert(fd >= 0);
write_size = HDwrite(fd, temp_buf, temp_size);
- HDassert(write_size == (ssize_t)temp_size);
+ assert(write_size == (ssize_t)temp_size);
HDclose(fd);