From cf1aab28fbc67697073d5ed2e7d4931838aa39d3 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Tue, 4 Jan 2022 09:12:11 -0600 Subject: 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> --- test/links.c | 9 +++++---- 1 file 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 -- cgit v0.12