summaryrefslogtreecommitdiffstats
path: root/tools/libtest
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-13 23:09:48 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-13 23:10:09 (GMT)
commit341600b4a68dc9dbf11e1c43c3ff2746c200bd2c (patch)
treeb8c1644d019ab10eb862fe477fe09f8c3db9b027 /tools/libtest
parentc3c60dc7b5d5104475748f9967135903e3974cc3 (diff)
downloadhdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.zip
hdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.tar.gz
hdf5-341600b4a68dc9dbf11e1c43c3ff2746c200bd2c.tar.bz2
Update tools hid_t declarations with H5I_INVALID_HID
Diffstat (limited to 'tools/libtest')
-rw-r--r--tools/libtest/h5tools_test_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/libtest/h5tools_test_utils.c b/tools/libtest/h5tools_test_utils.c
index 120f803..726f4c4 100644
--- a/tools/libtest/h5tools_test_utils.c
+++ b/tools/libtest/h5tools_test_utils.c
@@ -1000,7 +1000,7 @@ test_set_configured_fapl(void)
* TEST-LOCAL VARIABLES *
************************/
- hid_t fapl_id = -1;
+ hid_t fapl_id = H5I_INVALID_HID;
other_fa_t wrong_fa = {0x432, 0xf82, 0x9093};
H5FD_ros3_fapl_t ros3_anon_fa = {1, FALSE, "", "", ""};
H5FD_ros3_fapl_t ros3_auth_fa = {
@@ -1150,7 +1150,7 @@ test_set_configured_fapl(void)
int result;
testcase C = cases[i];
- fapl_id = -1;
+ fapl_id = H5I_INVALID_HID;
#if UTIL_TEST_DEBUG
HDfprintf(stderr, "setup test %d\t%s\n", i, C.message); fflush(stderr);
@@ -1183,7 +1183,7 @@ test_set_configured_fapl(void)
if (fapl_id > 0) {
FAIL_IF( FAIL == H5Pclose(fapl_id) )
}
- fapl_id = -1;
+ fapl_id = H5I_INVALID_HID;
#if UTIL_TEST_DEBUG
HDfprintf(stderr, "after cleanup\n"); fflush(stderr);