summaryrefslogtreecommitdiffstats
path: root/test/lheap.c
diff options
context:
space:
mode:
authorhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
committerhdftest <hdftest@hdfgroup.org>2018-09-20 19:59:17 (GMT)
commit04a2d68778bc978ac62b03b5b5bfa034e2ced7f7 (patch)
tree8eb0dde943224b0caed11dee349862ce7a9aefa6 /test/lheap.c
parente2f6e6f62f8885e85540c870ff3e3370b7617c79 (diff)
parentd3074fa8bd8cb5eb266741203b68ce9129c2d7dc (diff)
downloadhdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.zip
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.gz
hdf5-04a2d68778bc978ac62b03b5b5bfa034e2ced7f7.tar.bz2
Merge branch 'develop' of ssh://bitbucket.hdfgroup.org:7999/~hdftest/hdf5_hft into develop
Diffstat (limited to 'test/lheap.c')
-rw-r--r--test/lheap.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/lheap.c b/test/lheap.c
index 4f09b6e..d309fb0 100644
--- a/test/lheap.c
+++ b/test/lheap.c
@@ -41,9 +41,7 @@ const char *FILENAME[] = {
* heap, close the file, open the file, read data out of the
* local heap, close the file.
*
- * Return: Success: zero
- *
- * Failure: non-zero
+ * Return: EXIT_SUCCESS/EXIT_FAILURE
*
* Programmer: Robb Matzke
* Tuesday, November 24, 1998
@@ -95,7 +93,7 @@ main(void)
H5Eprint2(H5E_DEFAULT, stdout);
goto error;
}
- if (NULL == (heap = H5HL_protect(f, heap_addr, H5AC__NO_FLAGS_SET))) {
+ if(NULL == (heap = H5HL_protect(f, heap_addr, H5AC__NO_FLAGS_SET))) {
H5_FAILED();
H5Eprint2(H5E_DEFAULT, stdout);
goto error;
@@ -147,7 +145,7 @@ main(void)
if(j > 4)
buf[j] = '\0';
- if (NULL == (heap = H5HL_protect(f, heap_addr, H5AC__READ_ONLY_FLAG))) {
+ if(NULL == (heap = H5HL_protect(f, heap_addr, H5AC__READ_ONLY_FLAG))) {
H5_FAILED();
H5Eprint2(H5E_DEFAULT, stdout);
goto error;
@@ -211,7 +209,7 @@ main(void)
HDputs("All local heap tests passed.");
h5_cleanup(FILENAME, fapl);
- return 0;
+ return EXIT_SUCCESS;
error:
HDputs("*** TESTS FAILED ***");
@@ -221,6 +219,6 @@ main(void)
if(api_ctx_pushed) H5CX_pop();
- return 1;
+ return EXIT_FAILURE;
}