diff options
author | Larry Knox <lrknox@hdfgroup.org> | 2021-04-01 20:14:21 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-01 20:14:21 (GMT) |
commit | 87d18137ceed7eae1ca7009dda6f4cf2841ff195 (patch) | |
tree | 291983f4bc5f9230bf53564e8555272319d382aa /test/version_bounds_1_10.c | |
parent | df75d35cc5295b03dc305ca7e5495fece5737d30 (diff) | |
download | hdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.zip hdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.tar.gz hdf5-87d18137ceed7eae1ca7009dda6f4cf2841ff195.tar.bz2 |
Hdf5 merge issue 487 v110 (#533)
* Cleans up a couple of MSVC warnings in testhdf5 (#475)
* Fixes a few testhdf5 warnings raised in Visual Studio
Visual Studio is grumpier about treating pointers like integers than
gcc.
* Committing clang-format changes
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fix typos and grammar errors. (#476)
* Suppresses the tcheck_version test's abort dialog on Windows (#477)
* Suppresses the tcheck_version test's abort dialog on Windows
Windows raises a modal abort/retry/ignore dialog box when CRT
calls abort(). This change installs a report hook that suppresses
the dialog so that the CMake tests don't time out waiting for a
nonexistent user to click a dialog box.
* Committing clang-format changes
* Removes __cdecl from callback
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Committing clang-format changes
Co-authored-by: Dana Robinson <43805+derobins@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: H. Joe Lee <hyoklee@hdfgroup.org>
Diffstat (limited to 'test/version_bounds_1_10.c')
-rw-r--r-- | test/version_bounds_1_10.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/test/version_bounds_1_10.c b/test/version_bounds_1_10.c index c18f431..3ec5057 100644 --- a/test/version_bounds_1_10.c +++ b/test/version_bounds_1_10.c @@ -66,7 +66,10 @@ test_sel_check(hid_t fid, const char *dset_name, int should_open, int should_acc hdset_reg_ref_t ref_rbuf[1]; /* The buffer for the reference */ /* Open and read the referenced dataset */ - H5E_BEGIN_TRY { did = H5Dopen2(fid, dset_name, H5P_DEFAULT); } + H5E_BEGIN_TRY + { + did = H5Dopen2(fid, dset_name, H5P_DEFAULT); + } H5E_END_TRY; if (should_open && (H5I_INVALID_HID == did)) @@ -79,7 +82,10 @@ test_sel_check(hid_t fid, const char *dset_name, int should_open, int should_acc TEST_ERROR /* Open access to the region reference from the dataset's dataspace */ - H5E_BEGIN_TRY { sid = H5Rget_region(did, H5R_DATASET_REGION, &ref_rbuf[0]); } + H5E_BEGIN_TRY + { + sid = H5Rget_region(did, H5R_DATASET_REGION, &ref_rbuf[0]); + } H5E_END_TRY; if (should_access && (H5I_INVALID_HID == sid)) @@ -200,7 +206,10 @@ test_sel_bounds(const char *filename) return SUCCEED; error: - H5E_BEGIN_TRY { H5Fclose(fid); } + H5E_BEGIN_TRY + { + H5Fclose(fid); + } H5E_END_TRY; return FAIL; @@ -217,7 +226,10 @@ test_ref_check(hid_t fid, const char *dset_name, hbool_t should_open) { hid_t did = H5I_INVALID_HID; /* Dataset ID */ - H5E_BEGIN_TRY { did = H5Dopen2(fid, dset_name, H5P_DEFAULT); } + H5E_BEGIN_TRY + { + did = H5Dopen2(fid, dset_name, H5P_DEFAULT); + } H5E_END_TRY; if (should_open && (H5I_INVALID_HID == did)) @@ -294,7 +306,10 @@ test_ref_bounds(const char *filename) return SUCCEED; error: - H5E_BEGIN_TRY { H5Fclose(fid); } + H5E_BEGIN_TRY + { + H5Fclose(fid); + } H5E_END_TRY; return FAIL; |