diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-04-19 21:51:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-19 21:51:18 (GMT) |
commit | d3384b2e8e5fafd9f3aa90e738ca18d5ddeeb3c1 (patch) | |
tree | 20fd24fe7c410027a17dac3907e6d289d34b365d /test/reserved.c | |
parent | b2c78e15cf2e78221c0f04fa47107f9ce94393fe (diff) | |
download | hdf5-d3384b2e8e5fafd9f3aa90e738ca18d5ddeeb3c1.zip hdf5-d3384b2e8e5fafd9f3aa90e738ca18d5ddeeb3c1.tar.gz hdf5-d3384b2e8e5fafd9f3aa90e738ca18d5ddeeb3c1.tar.bz2 |
Fixes incorrect usage of H5I_BADID (#554)
* Committing clang-format changes
* Fixes incorrect use of H5I_BADID
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'test/reserved.c')
-rw-r--r-- | test/reserved.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/reserved.c b/test/reserved.c index 1ea73a6..6e41a16 100644 --- a/test/reserved.c +++ b/test/reserved.c @@ -126,7 +126,7 @@ rsrv_heap(void) /* If we can read a dataset from the file, the file has been flushed to disk * (if the heap or object headers weren't flushed, the file would be empty). */ - if (dataset_id == H5I_BADID) + if (dataset_id == H5I_INVALID_HID) TEST_ERROR; if (H5Dclose(dataset_id) < 0) @@ -268,7 +268,7 @@ rsrv_ohdr(void) /* If we can read the dataset from the file, the file has been flushed to disk * (if the heap or object headers weren't flushed, the file would be empty). */ - if (dataset_id == H5I_BADID) + if (dataset_id == H5I_INVALID_HID) TEST_ERROR; if (H5Dclose(dataset_id) < 0) @@ -432,7 +432,7 @@ rsrv_vlen(void) /* If we can read the dataset from the file, the file has been flushed to disk * (if the heap or object headers weren't flushed, the file would be empty). */ - if (dataset_id == H5I_BADID) + if (dataset_id == H5I_INVALID_HID) TEST_ERROR; if (H5Dclose(dataset_id) < 0) |