summaryrefslogtreecommitdiffstats
path: root/test/unlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/unlink.c')
-rw-r--r--test/unlink.c50
1 files changed, 40 insertions, 10 deletions
diff --git a/test/unlink.c b/test/unlink.c
index c58e3ec..94bd035 100644
--- a/test/unlink.c
+++ b/test/unlink.c
@@ -117,7 +117,10 @@ test_one(hid_t file)
TESTING("unlink without a name");
if ((grp = H5Gcreate2(work, "foo", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0)
FAIL_STACK_ERROR
- H5E_BEGIN_TRY { status = H5Ldelete(grp, ".", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Ldelete(grp, ".", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (status >= 0)
FAIL_PUTS_ERROR(" Unlinking object w/o a name should have failed.")
@@ -287,7 +290,10 @@ test_symlink(hid_t file)
return 0;
error:
- H5E_BEGIN_TRY { H5Gclose(work); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(work);
+ }
H5E_END_TRY;
return 1;
} /* end test_symlink() */
@@ -1288,7 +1294,10 @@ test_filespace(hid_t fapl)
FAIL_STACK_ERROR
/* Create another group with same name */
- H5E_BEGIN_TRY { group = H5Gcreate2(file, GROUPNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ group = H5Gcreate2(file, GROUPNAME, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ }
H5E_END_TRY;
if (group >= 0) {
H5Gclose(group);
@@ -1335,7 +1344,10 @@ test_filespace(hid_t fapl)
FAIL_STACK_ERROR
/* Create another named datatype with same name */
- H5E_BEGIN_TRY { status = H5Tcommit2(file, TYPENAME, type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Tcommit2(file, TYPENAME, type, H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ }
H5E_END_TRY;
if (status >= 0)
TEST_ERROR
@@ -1789,12 +1801,18 @@ error:
/* Close any open groups */
for (n = 0; n < ngroups; n++)
if (gids[n]) {
- H5E_BEGIN_TRY { H5Gclose(gids[n]); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(gids[n]);
+ }
H5E_END_TRY;
} /* end if */
HDfree(gids);
} /* end if */
- H5E_BEGIN_TRY { H5Gclose(rootid); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(rootid);
+ }
H5E_END_TRY;
return 1;
@@ -1875,12 +1893,18 @@ error:
/* Close any open groups */
for (n = 0; n < ngroups; n++)
if (gids[n]) {
- H5E_BEGIN_TRY { H5Gclose(gids[n]); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(gids[n]);
+ }
H5E_END_TRY;
} /* end if */
HDfree(gids);
} /* end if */
- H5E_BEGIN_TRY { H5Gclose(rootid); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(rootid);
+ }
H5E_END_TRY;
return 1;
@@ -2247,12 +2271,18 @@ error:
/* Close any open groups */
for (n = 0; n < ngroups; n++)
if (gids[n]) {
- H5E_BEGIN_TRY { H5Gclose(gids[n]); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(gids[n]);
+ }
H5E_END_TRY;
} /* end if */
HDfree(gids);
} /* end if */
- H5E_BEGIN_TRY { H5Gclose(rootid); }
+ H5E_BEGIN_TRY
+ {
+ H5Gclose(rootid);
+ }
H5E_END_TRY;
return 1;