summaryrefslogtreecommitdiffstats
path: root/test/links.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/links.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/links.c')
-rw-r--r--test/links.c275
1 files changed, 220 insertions, 55 deletions
diff --git a/test/links.c b/test/links.c
index 3681f16..ee370de 100644
--- a/test/links.c
+++ b/test/links.c
@@ -634,14 +634,20 @@ cklinks(hid_t fapl, hbool_t new_format)
FAIL_STACK_ERROR
if (H5Lexists(file, "/grp1/hard", H5P_DEFAULT) != TRUE)
FAIL_STACK_ERROR
- H5E_BEGIN_TRY { status = H5Lexists(file, "no_grp1/hard", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Lexists(file, "no_grp1/hard", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (status >= 0) {
H5_FAILED();
HDputs(" H5Lexists() should have failed for a path with missing components.");
TEST_ERROR
} /* end if */
- H5E_BEGIN_TRY { status = H5Lexists(file, "/no_grp1/hard", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Lexists(file, "/no_grp1/hard", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (status >= 0) {
H5_FAILED();
@@ -1036,7 +1042,10 @@ toomany(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through too deep soft link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "soft17", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "soft17", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -1381,7 +1390,10 @@ test_move(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Verify that the group is no longer in the original location */
- H5E_BEGIN_TRY { moved_grp = H5Gopen2(grp_1, "group_move", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ moved_grp = H5Gopen2(grp_1, "group_move", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (moved_grp >= 0) {
H5_FAILED();
@@ -2255,7 +2267,10 @@ external_link_root(hid_t fapl, hbool_t new_format)
if ((fid = H5Fopen(filename2, H5F_ACC_RDONLY, fapl)) < 0)
TEST_ERROR
- H5E_BEGIN_TRY { gid = H5Gcreate2(fid, "ext_link/readonly_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gcreate2(fid, "ext_link/readonly_group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT);
+ }
H5E_END_TRY
if (gid >= 0)
TEST_ERROR
@@ -3049,7 +3064,10 @@ external_link_toomany(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "link1", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "link1", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -3156,7 +3174,10 @@ external_link_dangling(hid_t fapl, hbool_t new_format)
TEST_ERROR;
/* Open object through dangling file external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "no_file", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "no_file", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -3165,7 +3186,10 @@ external_link_dangling(hid_t fapl, hbool_t new_format)
}
/* Open object through dangling object external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "no_object", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "no_object", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -3273,7 +3297,10 @@ external_link_prefix(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", gapl_id); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", gapl_id);
+ }
H5E_END_TRY;
/* should be able to find the target file from pathnames set via H5Pset_elink_prefix() */
@@ -3367,7 +3394,10 @@ external_link_abs_mainpath(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file from absolute path set for main file */
@@ -3452,7 +3482,10 @@ external_link_rel_mainpath(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file from the main file's relative pathname */
@@ -3542,7 +3575,10 @@ external_link_cwd(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file from the current working directory */
@@ -3637,7 +3673,10 @@ external_link_abstar(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file with abolute path */
@@ -3732,7 +3771,10 @@ external_link_abstar_cur(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file from main file's current working directory */
@@ -3904,7 +3946,10 @@ external_link_chdir(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (HDchdir("..") < 0)
@@ -4536,7 +4581,10 @@ external_set_elink_acc_flags(const char *env_h5_drvr, hid_t fapl, hbool_t new_fo
TEST_ERROR
/* Attempt to create a group through the external link using gapl (should fail) */
- H5E_BEGIN_TRY { group = H5Gcreate2(file1, "/ext_link/group", H5P_DEFAULT, H5P_DEFAULT, gapl); }
+ H5E_BEGIN_TRY
+ {
+ group = H5Gcreate2(file1, "/ext_link/group", H5P_DEFAULT, H5P_DEFAULT, gapl);
+ }
H5E_END_TRY;
if (group != FAIL)
TEST_ERROR
@@ -4584,25 +4632,40 @@ external_set_elink_acc_flags(const char *env_h5_drvr, hid_t fapl, hbool_t new_fo
TEST_ERROR
/* Attempt to set invalid flags on gapl */
- H5E_BEGIN_TRY { ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_TRUNC); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_TRUNC);
+ }
H5E_END_TRY;
if (ret != FAIL)
TEST_ERROR
- H5E_BEGIN_TRY { ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_EXCL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_EXCL);
+ }
H5E_END_TRY;
if (ret != FAIL)
TEST_ERROR
- H5E_BEGIN_TRY { ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_CREAT); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_CREAT);
+ }
H5E_END_TRY;
if (ret != FAIL)
TEST_ERROR
/* SWMR reader with write access */
- H5E_BEGIN_TRY { ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_RDWR | H5F_ACC_SWMR_READ); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_RDWR | H5F_ACC_SWMR_READ);
+ }
H5E_END_TRY;
if (ret != FAIL)
TEST_ERROR
/* SWMR writer with read-only access */
- H5E_BEGIN_TRY { ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_RDONLY | H5F_ACC_SWMR_WRITE); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_elink_acc_flags(gapl, H5F_ACC_RDONLY | H5F_ACC_SWMR_WRITE);
+ }
H5E_END_TRY;
if (ret != FAIL)
TEST_ERROR
@@ -4715,19 +4778,31 @@ external_set_elink_acc_flags(const char *env_h5_drvr, hid_t fapl, hbool_t new_fo
} /* end if */
/* Verify that H5Fcreate and H5Fopen reject H5F_ACC_DEFAULT */
- H5E_BEGIN_TRY { file1 = H5Fcreate(filename1, H5F_ACC_DEFAULT, H5P_DEFAULT, fapl); }
+ H5E_BEGIN_TRY
+ {
+ file1 = H5Fcreate(filename1, H5F_ACC_DEFAULT, H5P_DEFAULT, fapl);
+ }
H5E_END_TRY;
if (file1 != FAIL)
TEST_ERROR
- H5E_BEGIN_TRY { file1 = H5Fcreate(filename1, H5F_ACC_TRUNC | H5F_ACC_DEFAULT, H5P_DEFAULT, fapl); }
+ H5E_BEGIN_TRY
+ {
+ file1 = H5Fcreate(filename1, H5F_ACC_TRUNC | H5F_ACC_DEFAULT, H5P_DEFAULT, fapl);
+ }
H5E_END_TRY;
if (file1 != FAIL)
TEST_ERROR
- H5E_BEGIN_TRY { file1 = H5Fopen(filename1, H5F_ACC_DEFAULT, fapl); }
+ H5E_BEGIN_TRY
+ {
+ file1 = H5Fopen(filename1, H5F_ACC_DEFAULT, fapl);
+ }
H5E_END_TRY;
if (file1 != FAIL)
TEST_ERROR
- H5E_BEGIN_TRY { file1 = H5Fopen(filename1, H5F_ACC_RDWR | H5F_ACC_DEFAULT, fapl); }
+ H5E_BEGIN_TRY
+ {
+ file1 = H5Fopen(filename1, H5F_ACC_RDWR | H5F_ACC_DEFAULT, fapl);
+ }
H5E_END_TRY;
if (file1 != FAIL)
TEST_ERROR
@@ -4908,7 +4983,10 @@ external_set_elink_cb(hid_t fapl, hbool_t new_format)
op_data.code = 1;
/* Attempt to reopen group2 (should fail) */
- H5E_BEGIN_TRY { group = H5Gopen2(file1, "/group1/ext_link/group2", gapl); }
+ H5E_BEGIN_TRY
+ {
+ group = H5Gopen2(file1, "/group1/ext_link/group2", gapl);
+ }
H5E_END_TRY;
if (group != FAIL)
TEST_ERROR
@@ -4917,7 +4995,10 @@ external_set_elink_cb(hid_t fapl, hbool_t new_format)
op_data.code = 2;
/* Attempt to reopen group2 (should fail) */
- H5E_BEGIN_TRY { group = H5Gopen2(file1, "/group1/ext_link/group2", gapl); }
+ H5E_BEGIN_TRY
+ {
+ group = H5Gopen2(file1, "/group1/ext_link/group2", gapl);
+ }
H5E_END_TRY;
if (group != FAIL)
TEST_ERROR
@@ -5002,7 +5083,10 @@ external_reset_register(void)
return SUCCEED;
error:
- H5E_BEGIN_TRY { H5Fclose(file); }
+ H5E_BEGIN_TRY
+ {
+ H5Fclose(file);
+ }
H5E_END_TRY;
return FAIL;
} /* end external_reset_register() */
@@ -5071,7 +5155,10 @@ external_link_win1(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via main file's CWD*/
@@ -5165,7 +5252,10 @@ external_link_win2(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file directly */
@@ -5256,7 +5346,10 @@ external_link_win3(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file directly */
@@ -5344,7 +5437,10 @@ external_link_win4(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via main file's absolute drive/relative path */
@@ -5442,7 +5538,10 @@ external_link_win5(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via main file's rel drive/abs path */
@@ -5537,7 +5636,10 @@ external_link_win6(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via target file's rel path in current drive */
@@ -5629,7 +5731,10 @@ external_link_win7(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via main file's local host/main drive*/
@@ -5726,7 +5831,10 @@ external_link_win8(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file directly */
@@ -5818,7 +5926,10 @@ external_link_win9(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "ext_link", H5P_DEFAULT);
+ }
H5E_END_TRY;
/* should be able to find the target file via main file's local host/main drive*/
@@ -5890,7 +6001,10 @@ external_link_recursive(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Open object through dangling file external link */
- H5E_BEGIN_TRY { gid = H5Gopen2(fid, "recursive", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Gopen2(fid, "recursive", H5P_DEFAULT);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -7731,7 +7845,10 @@ external_dont_fail_to_source(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Attempt to open the object the link points to. This should fail */
- H5E_BEGIN_TRY { oid = H5Oopen(fid, "link", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ oid = H5Oopen(fid, "link", H5P_DEFAULT);
+ }
H5E_END_TRY
if (oid >= 0)
FAIL_PUTS_ERROR("Succeeded in opening target of invalid external link")
@@ -10110,7 +10227,10 @@ lapl_nlinks(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Try opening through what is now too many soft links */
- H5E_BEGIN_TRY { gid = H5Oopen(fid, "soft5", plist); }
+ H5E_BEGIN_TRY
+ {
+ gid = H5Oopen(fid, "soft5", plist);
+ }
H5E_END_TRY;
if (gid >= 0) {
H5_FAILED();
@@ -10433,7 +10553,10 @@ check_all_closed(hid_t fapl, hbool_t new_format, int stopat)
return SUCCEED;
error:
- H5E_BEGIN_TRY { H5Fclose(fid); }
+ H5E_BEGIN_TRY
+ {
+ H5Fclose(fid);
+ }
H5E_END_TRY;
return FAIL;
} /* end check_all_closed() */
@@ -10559,7 +10682,10 @@ build_visit_file(hid_t fapl)
return (fid);
error:
- H5E_BEGIN_TRY { H5Fclose(fid); }
+ H5E_BEGIN_TRY
+ {
+ H5Fclose(fid);
+ }
H5E_END_TRY;
return FAIL;
} /* end build_visit_file() */
@@ -11026,7 +11152,10 @@ obj_visit_stop(hid_t fapl, hbool_t new_format)
return SUCCEED;
error:
- H5E_BEGIN_TRY { H5Fclose(fid); }
+ H5E_BEGIN_TRY
+ {
+ H5Fclose(fid);
+ }
H5E_END_TRY;
return FAIL;
} /* end obj_visit_stop() */
@@ -11536,7 +11665,10 @@ obj_exists(hid_t fapl, hbool_t new_format)
/* Hard links */
/* Verify that H5Oexists_by_name() fails for non-existent link in root group */
- H5E_BEGIN_TRY { status = H5Oexists_by_name(fid, "foo", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Oexists_by_name(fid, "foo", H5P_DEFAULT);
+ }
H5E_END_TRY
if (status >= 0)
TEST_ERROR
@@ -11552,7 +11684,10 @@ obj_exists(hid_t fapl, hbool_t new_format)
TEST_ERROR
/* Verify that H5Oexists_by_name() fails for non-existent link in non-root group */
- H5E_BEGIN_TRY { status = H5Oexists_by_name(fid, "group/foo", H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ status = H5Oexists_by_name(fid, "group/foo", H5P_DEFAULT);
+ }
H5E_END_TRY
if (status >= 0)
TEST_ERROR
@@ -11866,7 +12001,10 @@ corder_create_empty(hid_t fapl)
TEST_ERROR
/* Setting invalid combination of a group order creation order indexing on should fail */
- H5E_BEGIN_TRY { ret = H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_INDEXED); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Pset_link_creation_order(gcpl_id, H5P_CRT_ORDER_INDEXED);
+ }
H5E_END_TRY;
if (ret > 0) {
H5_FAILED();
@@ -14290,7 +14428,10 @@ link_iterate_check(hid_t group_id, H5_index_t idx_type, H5_iter_order_t order, u
/* Check for iteration routine indicating failure */
skip = 0;
- H5E_BEGIN_TRY { ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_fail_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_fail_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -14453,7 +14594,10 @@ link_iterate(hid_t fapl)
/* Check for out of bound iteration on compact group */
skip = (hsize_t)u;
- H5E_BEGIN_TRY { ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -14483,7 +14627,10 @@ link_iterate(hid_t fapl)
/* Check for out of bound iteration on dense group */
skip = (hsize_t)u;
- H5E_BEGIN_TRY { ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate(group_id, idx_type, order, &skip, link_iterate_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -14774,20 +14921,29 @@ link_iterate_old_check(hid_t group_id, H5_iter_order_t order, unsigned max_links
/* Check for iteration routine indicating failure */
skip = 0;
- H5E_BEGIN_TRY { ret = H5Literate(group_id, H5_INDEX_NAME, order, &skip, link_iterate_fail_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate(group_id, H5_INDEX_NAME, order, &skip, link_iterate_fail_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
/* Check for iteration w/bad location ID */
skip = 0;
- H5E_BEGIN_TRY { ret = H5Literate((hid_t)(-1), H5_INDEX_NAME, order, &skip, link_iterate_fail_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate((hid_t)(-1), H5_INDEX_NAME, order, &skip, link_iterate_fail_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
#ifndef H5_NO_DEPRECATED_SYMBOLS
- H5E_BEGIN_TRY { ret = H5Giterate((hid_t)(-1), ".", &gskip, group_iterate_old_cb, iter_info); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Giterate((hid_t)(-1), ".", &gskip, group_iterate_old_cb, iter_info);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -14877,7 +15033,10 @@ link_iterate_old(hid_t fapl)
/* Check for out of bound iteration on old-style group */
skip = (hsize_t)u;
- H5E_BEGIN_TRY { ret = H5Literate(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_cb, NULL); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Literate(group_id, H5_INDEX_NAME, order, &skip, link_iterate_old_cb, NULL);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -15361,7 +15520,10 @@ open_by_idx_old(hid_t fapl)
TEST_ERROR
/* Try to open on object in an empty group */
- H5E_BEGIN_TRY { ret = H5Oopen_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Oopen_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)0, H5P_DEFAULT);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR
@@ -15397,7 +15559,10 @@ open_by_idx_old(hid_t fapl)
TEST_ERROR
/* Check for out of bound open by index */
- H5E_BEGIN_TRY { ret = H5Oopen_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, H5P_DEFAULT); }
+ H5E_BEGIN_TRY
+ {
+ ret = H5Oopen_by_idx(group_id, ".", H5_INDEX_NAME, order, (hsize_t)u, H5P_DEFAULT);
+ }
H5E_END_TRY;
if (ret >= 0)
TEST_ERROR