summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@koziol.gov>2020-03-24 17:17:25 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:56 (GMT)
commitf2e152c9dbe29daaee9dae8da7216fa173290e87 (patch)
tree4e69a7cf806b1976a02d09e36231560d12921c7f
parentb373cd9a44d0bf974e4ab483fa68e370d3b8dedb (diff)
downloadhdf5-f2e152c9dbe29daaee9dae8da7216fa173290e87.zip
hdf5-f2e152c9dbe29daaee9dae8da7216fa173290e87.tar.gz
hdf5-f2e152c9dbe29daaee9dae8da7216fa173290e87.tar.bz2
Correct failure when allocation tracking are disabled.
-rw-r--r--test/tmisc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/tmisc.c b/test/tmisc.c
index dc3862a..07c5ce7 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -5744,6 +5744,7 @@ test_misc35(void)
ret = H5get_free_list_sizes(&reg_size_start, &arr_size_start, &blk_size_start, &fac_size_start);
CHECK(ret, FAIL, "H5get_free_list_sizes");
+#if defined H5_MEMORY_ALLOC_SANITY_CHECK
/* All the free list values should be >0 */
if(0 == reg_size_start)
ERROR("reg_size_start == 0");
@@ -5753,6 +5754,17 @@ test_misc35(void)
ERROR("blk_size_start == 0");
if(0 == fac_size_start)
ERROR("fac_size_start == 0");
+#else /* H5_MEMORY_ALLOC_SANITY_CHECK */
+ /* All the values should be == 0 */
+ if(0 != reg_size_start)
+ ERROR("reg_size_start != 0");
+ if(0 != arr_size_start)
+ ERROR("arr_size_start != 0");
+ if(0 != blk_size_start)
+ ERROR("blk_size_start != 0");
+ if(0 != fac_size_start)
+ ERROR("fac_size_start != 0");
+#endif /* H5_MEMORY_ALLOC_SANITY_CHECK */
/* Garbage collect the free lists */
ret = H5garbage_collect();