summaryrefslogtreecommitdiffstats
path: root/test/lheap.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-09-20 17:40:51 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-09-20 17:40:51 (GMT)
commit67a126c7ba8825ffb193c930c7b8cae939b3446d (patch)
treeeca9e38529355d2ec2a9c5fd934e7a9d9e4821b7 /test/lheap.c
parent99299e195b5294549b75b28321ae7f8d2c6f8644 (diff)
downloadhdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.zip
hdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.tar.gz
hdf5-67a126c7ba8825ffb193c930c7b8cae939b3446d.tar.bz2
Normalization with vol_integration (test code and H5Xtest.c)
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;
}