mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
Merge pull request #2463 in HDFFV/hdf5 from alloc_stats_fix to develop
* commit '60e446113ff9056806b1c1f80dab058418cdbef7': Correct failure when allocation tracking are disabled.
This commit is contained in:
commit
765cd82d2e
12
test/tmisc.c
12
test/tmisc.c
@ -5743,6 +5743,7 @@ test_misc35(void)
|
||||
ret = H5get_free_list_sizes(®_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");
|
||||
@ -5752,6 +5753,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();
|
||||
|
Loading…
Reference in New Issue
Block a user