summaryrefslogtreecommitdiffstats
path: root/test/theap.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-11-27 16:57:26 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-11-27 16:57:26 (GMT)
commit856e475c47ffd66668d2f868817357b4354f164b (patch)
treed8ba562a82e15a146f23fc94beb9ee95f92647ca /test/theap.c
parent8cb45292110453354afd78b7cf1da50db2341014 (diff)
downloadhdf5-856e475c47ffd66668d2f868817357b4354f164b.zip
hdf5-856e475c47ffd66668d2f868817357b4354f164b.tar.gz
hdf5-856e475c47ffd66668d2f868817357b4354f164b.tar.bz2
Added CHECK_PTR_EQ macro to testhdf5 to quiet cast warnings on Windows.
Diffstat (limited to 'test/theap.c')
-rw-r--r--test/theap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/theap.c b/test/theap.c
index cdb423e..7b2fadb 100644
--- a/test/theap.c
+++ b/test/theap.c
@@ -434,19 +434,19 @@ test_heap_remove_min(void)
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 5, "H5HP_remove");
- VERIFY(ptr, &obj2, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj2, "H5HP_remove");
/* Remove second maximum value from heap */
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 10, "H5HP_remove");
- VERIFY(ptr, &obj1, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj1, "H5HP_remove");
/* Remove third maximum value from heap */
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 20, "H5HP_remove");
- VERIFY(ptr, &obj3, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj3, "H5HP_remove");
/* Try removing an object from an empty heap */
ret=H5HP_remove(heap,&val,&ptr);
@@ -508,19 +508,19 @@ test_heap_remove_max(void)
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 20, "H5HP_remove");
- VERIFY(ptr, &obj3, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj3, "H5HP_remove");
/* Remove second maximum value from heap */
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 10, "H5HP_remove");
- VERIFY(ptr, &obj1, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj1, "H5HP_remove");
/* Remove third maximum value from heap */
ret=H5HP_remove(heap,&val,&ptr);
CHECK(ret, FAIL, "H5HP_remove");
VERIFY(val, 5, "H5HP_remove");
- VERIFY(ptr, &obj2, "H5HP_remove");
+ CHECK_PTR_EQ(ptr, &obj2, "H5HP_remove");
/* Try removing an object from an empty heap */
ret=H5HP_remove(heap,&val,&ptr);