Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check of returned value from API calls. #4702

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions test/links.c
Original file line number Diff line number Diff line change
Expand Up @@ -9132,7 +9132,8 @@ external_set_elink_fapl1(hid_t fapl, bool new_format)
TEST_ERROR;

/* open target object A */
oidA = H5Oopen(fid, "ext_linkA", lapl_idA);
if ((oidA = H5Oopen(fid, "ext_linkA", lapl_idA)) < 0)
TEST_ERROR;

/* should succeed in opening the target object A in the current working directory */
if (oidA < 0) {
Expand All @@ -9148,7 +9149,8 @@ external_set_elink_fapl1(hid_t fapl, bool new_format)
TEST_ERROR;

/* open target object B */
oidB = H5Oopen(fid, "ext_linkB", lapl_idB);
if ((oidB = H5Oopen(fid, "ext_linkB", lapl_idB)) < 0)
TEST_ERROR;

/* should succeed in opening the target object B in the current working directory */
if (oidB < 0) {
Expand Down Expand Up @@ -10118,7 +10120,8 @@ external_set_elink_cb(hid_t fapl, bool new_format)
if (h5_using_parallel_driver(fapl, &driver_is_parallel) < 0)
TEST_ERROR;

base_driver = H5Pget_driver(fapl);
if ((base_driver = H5Pget_driver(fapl)) < 0)
TEST_ERROR;

/* Core file driver has issues when used as the member file driver for a family file */
/* Family file driver cannot be used with family or multi drivers for member files */
Expand Down Expand Up @@ -13437,7 +13440,8 @@ external_file_cache(hid_t fapl, bool new_format)
H5F_sfile_assert_num(0);

/* Close fapl */
H5Pclose(my_fapl);
if (H5Pclose(my_fapl) < 0)
TEST_ERROR;

PASSED();
return SUCCEED;
Expand Down
Loading