diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2023-06-28 14:31:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 14:31:56 (GMT) |
commit | 7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch) | |
tree | 44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /test/gen_nullspace.c | |
parent | 622fcbd13881fbc58bbeaed3062583b759f5e864 (diff) | |
download | hdf5-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_nullspace.c')
-rw-r--r-- | test/gen_nullspace.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/gen_nullspace.c b/test/gen_nullspace.c index 12e00d4..84e7398 100644 --- a/test/gen_nullspace.c +++ b/test/gen_nullspace.c @@ -41,42 +41,42 @@ main(void) /* Create the file */ fid = H5Fcreate(NULLFILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); - HDassert(fid > 0); + assert(fid > 0); sid = H5Screate(H5S_NULL); - HDassert(sid > 0); + assert(sid > 0); /* Create dataset */ did = H5Dcreate2(fid, NULLDATASET, H5T_NATIVE_UINT, sid, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); - HDassert(did > 0); + assert(did > 0); /* Close the dataset */ ret = H5Dclose(did); - HDassert(ret >= 0); + assert(ret >= 0); /* Open the root group */ gid = H5Gopen2(fid, "/", H5P_DEFAULT); - HDassert(gid > 0); + assert(gid > 0); /* Create an attribute for the group */ attr = H5Acreate2(gid, NULLATTR, H5T_NATIVE_INT, sid, H5P_DEFAULT, H5P_DEFAULT); - HDassert(attr > 0); + assert(attr > 0); /* Close attribute */ ret = H5Aclose(attr); - HDassert(ret >= 0); + assert(ret >= 0); /* Close the group */ ret = H5Gclose(gid); - HDassert(ret >= 0); + assert(ret >= 0); /* Close the dataspace */ ret = H5Sclose(sid); - HDassert(ret >= 0); + assert(ret >= 0); /* Close the file */ ret = H5Fclose(fid); - HDassert(ret >= 0); + assert(ret >= 0); return EXIT_SUCCESS; } |