summaryrefslogtreecommitdiffstats
path: root/test/unlink.c
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2021-04-01 20:14:21 (GMT)
committerGitHub <noreply@github.com>2021-04-01 20:14:21 (GMT)
commit87d18137ceed7eae1ca7009dda6f4cf2841ff195 (patch)
tree291983f4bc5f9230bf53564e8555272319d382aa /test/unlink.c
parentdf75d35cc5295b03dc305ca7e5495fece5737d30 (diff)
downloadhdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.zip
hdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.tar.gz
hdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.tar.bz2
Hdf5 merge issue 487 v110 (#533)
* Cleans up a couple of MSVC warnings in testhdf5 (#475) * Fixes a few testhdf5 warnings raised in Visual Studio Visual Studio is grumpier about treating pointers like integers than gcc. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Fix typos and grammar errors. (#476) * Suppresses the tcheck_version test's abort dialog on Windows (#477) * Suppresses the tcheck_version test's abort dialog on Windows Windows raises a modal abort/retry/ignore dialog box when CRT calls abort(). This change installs a report hook that suppresses the dialog so that the CMake tests don't time out waiting for a nonexistent user to click a dialog box. * Committing clang-format changes * Removes __cdecl from callback Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Committing clang-format changes Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org>
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 dfd0010..f939bd6 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() */
@@ -1285,7 +1291,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);
@@ -1332,7 +1341,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
@@ -1786,12 +1798,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;
@@ -1872,12 +1890,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;
@@ -2244,12 +2268,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;