diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2022-01-04 15:12:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 15:12:11 (GMT) |
commit | cf1aab28fbc67697073d5ed2e7d4931838aa39d3 (patch) | |
tree | 1ac7833d0652e0064d5e49b2b9da1ae1332d7838 /test | |
parent | db61a888e65427351e3d07bda80f163c08f13cbb (diff) | |
download | hdf5-cf1aab28fbc67697073d5ed2e7d4931838aa39d3.zip hdf5-cf1aab28fbc67697073d5ed2e7d4931838aa39d3.tar.gz hdf5-cf1aab28fbc67697073d5ed2e7d4931838aa39d3.tar.bz2 |
Changed to correct return datatype for H5Lexists (#1330)
* changed to correct return datatype for H5Lexists
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/links.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/links.c b/test/links.c index 2fead45..658f8d6 100644 --- a/test/links.c +++ b/test/links.c @@ -2144,6 +2144,7 @@ cklinks_deprec(hid_t fapl, hbool_t new_format) char linkval[LINK_BUF_SIZE]; char filename[NAME_BUF_SIZE]; herr_t status; + htri_t exists; if (new_format) TESTING("link queries using deprecated routines (w/new group format)") @@ -2183,20 +2184,20 @@ cklinks_deprec(hid_t fapl, hbool_t new_format) FAIL_STACK_ERROR H5E_BEGIN_TRY { - status = H5Lexists(file, "no_grp1/hard", H5P_DEFAULT); + exists = H5Lexists(file, "no_grp1/hard", H5P_DEFAULT); } H5E_END_TRY; - if (status >= 0) { + if (exists >= 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); + exists = H5Lexists(file, "/no_grp1/hard", H5P_DEFAULT); } H5E_END_TRY; - if (status >= 0) { + if (exists >= 0) { H5_FAILED(); HDputs(" H5Lexists() should have failed for a path with missing components."); TEST_ERROR |