summaryrefslogtreecommitdiffstats
path: root/test/th5s.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-04-22 06:25:12 (GMT)
committerGitHub <noreply@github.com>2023-04-22 06:25:12 (GMT)
commit7707859279a60b32d2b6c915442a7c04d44445b4 (patch)
tree890d16aa2408b270368b36ea4f05ca20fe2f16f6 /test/th5s.c
parenta4371b6fce577852691dfdeac642dec1dd4b9453 (diff)
downloadhdf5-7707859279a60b32d2b6c915442a7c04d44445b4.zip
hdf5-7707859279a60b32d2b6c915442a7c04d44445b4.tar.gz
hdf5-7707859279a60b32d2b6c915442a7c04d44445b4.tar.bz2
Merge with develop (#2790)
Diffstat (limited to 'test/th5s.c')
-rw-r--r--test/th5s.c30
1 files changed, 20 insertions, 10 deletions
diff --git a/test/th5s.c b/test/th5s.c
index 77116a6..40d8b06 100644
--- a/test/th5s.c
+++ b/test/th5s.c
@@ -214,14 +214,22 @@ test_h5s_basic(void)
/* Verify that incorrect dimensions don't work */
dims1[0] = H5S_UNLIMITED;
- sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL);
+ H5E_BEGIN_TRY
+ {
+ sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL);
+ }
+ H5E_END_TRY;
VERIFY(sid1, FAIL, "H5Screate_simple");
dims1[0] = H5S_UNLIMITED;
sid1 = H5Screate(H5S_SIMPLE);
CHECK(sid1, FAIL, "H5Screate");
- ret = H5Sset_extent_simple(sid1, SPACE1_RANK, dims1, NULL);
+ H5E_BEGIN_TRY
+ {
+ ret = H5Sset_extent_simple(sid1, SPACE1_RANK, dims1, NULL);
+ }
+ H5E_END_TRY;
VERIFY(ret, FAIL, "H5Sset_extent_simple");
ret = H5Sclose(sid1);
@@ -1626,7 +1634,7 @@ test_h5s_check_encoding(hid_t in_fapl, hid_t in_sid, uint32_t expected_version,
/* Allocate the buffer for encoding */
buf = (char *)HDmalloc(buf_size);
- CHECK_PTR(buf, "H5Dmalloc");
+ CHECK_PTR(buf, "HDmalloc");
/* Encode according to the setting in in_fapl */
ret = H5Sencode2(in_sid, buf, &buf_size, in_fapl);
@@ -3499,16 +3507,18 @@ test_h5s(void)
* Programmer: Albert Cheng
* July 2, 1998
*
- * Modifications:
- *
*-------------------------------------------------------------------------
*/
void
cleanup_h5s(void)
{
- HDremove(DATAFILE);
- HDremove(NULLFILE);
- HDremove(BASICFILE);
- HDremove(ZEROFILE);
- HDremove(VERBFNAME);
+ H5E_BEGIN_TRY
+ {
+ H5Fdelete(DATAFILE, H5P_DEFAULT);
+ H5Fdelete(NULLFILE, H5P_DEFAULT);
+ H5Fdelete(BASICFILE, H5P_DEFAULT);
+ H5Fdelete(ZEROFILE, H5P_DEFAULT);
+ H5Fdelete(VERBFNAME, H5P_DEFAULT);
+ }
+ H5E_END_TRY;
}