summaryrefslogtreecommitdiffstats
path: root/test/gheap.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-04-08 00:35:30 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-04-08 00:35:30 (GMT)
commitce39d7501c58427add05aba62956acb84a6f56da (patch)
tree02f3845f417bd80bc1c6469e78ef3981babec648 /test/gheap.c
parent2f4152d02dbe55c158fa0ceb91ce8fb1a5a47bd3 (diff)
downloadhdf5-ce39d7501c58427add05aba62956acb84a6f56da.zip
hdf5-ce39d7501c58427add05aba62956acb84a6f56da.tar.gz
hdf5-ce39d7501c58427add05aba62956acb84a6f56da.tar.bz2
Brings H5CX_pop() changes from develop
Diffstat (limited to 'test/gheap.c')
-rw-r--r--test/gheap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/gheap.c b/test/gheap.c
index 64117f3..95594ee 100644
--- a/test/gheap.c
+++ b/test/gheap.c
@@ -12,7 +12,7 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
- * Programmer: Robb Matzke <matzke@llnl.gov>
+ * Programmer: Robb Matzke
* Tuesday, March 31, 1998
*
* Purpose: Tests the global heap. The global heap is the set of all
@@ -42,9 +42,9 @@
nerrors++; \
if (nerrors <= GHEAP_REPEATED_ERR_LIM) { \
H5_FAILED(); \
- puts(MSG); \
+ HDputs(MSG); \
if (nerrors == GHEAP_REPEATED_ERR_LIM) \
- puts(" Suppressing further errors..."); \
+ HDputs(" Suppressing further errors..."); \
} /* end if */ \
} /* end GHEAP_REPEATED_ERR */
@@ -129,7 +129,7 @@ test_1(hid_t fapl)
HDputs(" Unable to read object");
nerrors++;
}
- else if (HDmemcmp(in, out, size)) {
+ else if (HDmemcmp(in, out, size) != 0) {
H5_FAILED();
HDputs(" Value read doesn't match value written");
nerrors++;
@@ -229,7 +229,7 @@ test_2(hid_t fapl)
HDputs(" Unable to read object");
nerrors++;
}
- else if (memcmp(in, out, size)) {
+ else if (HDmemcmp(in, out, size) != 0) {
H5_FAILED();
HDputs(" Value read doesn't match value written");
nerrors++;
@@ -604,7 +604,7 @@ main(void)
HDputs("All global heap tests passed.");
/* Pop API context */
- if (api_ctx_pushed && H5CX_pop() < 0)
+ if (api_ctx_pushed && H5CX_pop(FALSE) < 0)
FAIL_STACK_ERROR
api_ctx_pushed = FALSE;
@@ -619,7 +619,7 @@ error:
H5E_END_TRY;
if (api_ctx_pushed)
- H5CX_pop();
+ H5CX_pop(FALSE);
HDputs("*** TESTS FAILED ***");
HDexit(EXIT_FAILURE);