summaryrefslogtreecommitdiffstats
path: root/test/chunk_info.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-04-09 14:07:53 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-04-09 14:07:53 (GMT)
commitee655cf374c5f2b2f43673a9e1d925af0f231626 (patch)
treeb17b2677e8536ac0a2b26327981363b943577f15 /test/chunk_info.c
parent94ecd14100c226ae16ba8e6122e8a025b408f360 (diff)
downloadhdf5-ee655cf374c5f2b2f43673a9e1d925af0f231626.zip
hdf5-ee655cf374c5f2b2f43673a9e1d925af0f231626.tar.gz
hdf5-ee655cf374c5f2b2f43673a9e1d925af0f231626.tar.bz2
Brings a lot of smaller changes from develop
Diffstat (limited to 'test/chunk_info.c')
-rw-r--r--test/chunk_info.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/chunk_info.c b/test/chunk_info.c
index 9390e6d..4a661eb 100644
--- a/test/chunk_info.c
+++ b/test/chunk_info.c
@@ -541,7 +541,7 @@ test_get_chunk_info_highest_v18(hid_t fapl)
#ifdef H5_HAVE_FILTER_DEFLATE
/* Allocate input (compressed) buffer */
- inbuf = malloc(z_dst_nbytes);
+ inbuf = HDcalloc(1, z_dst_nbytes);
/* Set chunk size to the compressed chunk size and the chunk point
to the compressed data chunk */
@@ -553,20 +553,20 @@ test_get_chunk_info_highest_v18(hid_t fapl)
/* Check for various zlib errors */
if (Z_BUF_ERROR == ret) {
- fprintf(stderr, "overflow");
+ HDfprintf(stderr, "overflow");
TEST_ERROR
}
else if (Z_MEM_ERROR == ret) {
- fprintf(stderr, "deflate memory error");
+ HDfprintf(stderr, "deflate memory error");
TEST_ERROR
}
else if (Z_OK != ret) {
- fprintf(stderr, "other deflate error");
+ HDfprintf(stderr, "other deflate error");
TEST_ERROR
}
#else
/* Allocate input (non-compressed) buffer */
- inbuf = malloc(CHK_SIZE);
+ inbuf = HDcalloc(1, CHK_SIZE);
HDmemcpy(inbuf, direct_buf, CHK_SIZE);
#endif /* end H5_HAVE_FILTER_DEFLATE */
@@ -1637,7 +1637,7 @@ test_basic_query(hid_t fapl)
TEST_ERROR
/* Remove the test file */
- remove(filename);
+ HDremove(filename);
PASSED();
return SUCCEED;
@@ -2045,7 +2045,7 @@ test_flt_msk_with_skip_compress(hid_t fapl)
TEST_ERROR
/* Remove the test file */
- remove(filename);
+ HDremove(filename);
PASSED();
return SUCCEED;