summaryrefslogtreecommitdiffstats
path: root/test/del_many_dense_attrs.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-05-04 15:49:01 (GMT)
committerGitHub <noreply@github.com>2022-05-04 15:49:01 (GMT)
commit838d050a63d310a38f92a510dc94c0656a84bb51 (patch)
tree55fe7b05c0408ebf4b28c3bfb5cd9a1d04fb2502 /test/del_many_dense_attrs.c
parent19a59c29b93c04ae069881da2354d3d7048619b9 (diff)
downloadhdf5-838d050a63d310a38f92a510dc94c0656a84bb51.zip
hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.gz
hdf5-838d050a63d310a38f92a510dc94c0656a84bb51.tar.bz2
h5test.h testing macros get enclosed in do..while loops (#1721)
* h5test.h testing macros get enclosed in do..while loops * Adds missed macro in hl C++ code * Fixes macro in Windows code
Diffstat (limited to 'test/del_many_dense_attrs.c')
-rw-r--r--test/del_many_dense_attrs.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/test/del_many_dense_attrs.c b/test/del_many_dense_attrs.c
index 78aba3b..4b12841 100644
--- a/test/del_many_dense_attrs.c
+++ b/test/del_many_dense_attrs.c
@@ -75,46 +75,46 @@ main(void)
/* To exit from the file for SIGABRT signal */
if (HDsignal(SIGABRT, catch_signal) == SIG_ERR)
- TEST_ERROR
+ TEST_ERROR;
fapl = h5_fileaccess();
h5_fixname(FILENAME[0], fapl, filename, sizeof(filename));
/* Set to latest format */
if (H5Pset_libver_bounds(fapl, H5F_LIBVER_LATEST, H5F_LIBVER_LATEST) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the file */
if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, fapl)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the file */
if (H5Fclose(fid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Re-open the file */
if ((fid = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the group creation property list */
if ((gcpl = H5Pcreate(H5P_GROUP_CREATE)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Set to use dense storage for all attributes on the group */
if (H5Pset_attr_phase_change(gcpl, 0, 0) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create the group in the file */
if ((gid = H5Gcreate2(fid, "group", H5P_DEFAULT, gcpl, H5P_DEFAULT)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create dataspace */
if ((sid = H5Screate(H5S_SCALAR)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Get a copy of the datatype */
if ((tid = H5Tcopy(H5T_NATIVE_FLOAT)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Create attributes in the group */
for (i = ATTR_COUNT; i >= 0; i--) {
@@ -123,44 +123,44 @@ main(void)
/* Create the attribute */
if ((aid = H5Acreate2(gid, aname, tid, sid, H5P_DEFAULT, H5P_DEFAULT)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Write to the attribute */
if (H5Awrite(aid, tid, &i) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the attribute */
if (H5Aclose(aid) < 0)
- TEST_ERROR
+ TEST_ERROR;
}
/* Close the datatype */
if (H5Tclose(tid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the dataspace */
if (H5Sclose(sid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the group */
if (H5Gclose(gid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the group creation property list */
if (H5Pclose(gcpl) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the file */
if (H5Fclose(fid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Re-open the file */
if ((fid = H5Fopen(filename, H5F_ACC_RDWR, fapl)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Open the group */
if ((gid = H5Gopen2(fid, "group", H5P_DEFAULT)) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Delete the attributes */
for (i = 0; i <= ATTR_COUNT; i++) {
@@ -169,16 +169,16 @@ main(void)
/* Delete the attribute */
if (H5Adelete(gid, aname) < 0)
- TEST_ERROR
+ TEST_ERROR;
} /* end for */
/* Close the group */
if (H5Gclose(gid) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Close the file */
if (H5Fclose(fid) < 0)
- TEST_ERROR
+ TEST_ERROR;
h5_cleanup(FILENAME, fapl);