summaryrefslogtreecommitdiffstats
path: root/test/efc.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/efc.c')
-rw-r--r--test/efc.c2148
1 files changed, 1074 insertions, 1074 deletions
diff --git a/test/efc.c b/test/efc.c
index e61eb1b..8348f10 100644
--- a/test/efc.c
+++ b/test/efc.c
@@ -70,15 +70,15 @@ test_single(void)
* a file pointer to H5F__efc_open containing the EFC.
*/
if (H5Pset_elink_file_cache_size(fapl_id, 3) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Open parent file */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Disable EFC for child files */
if (H5Pset_elink_file_cache_size(fapl_id, 0) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Test 1: Open file 1 through EFC, close, then open normally, verify ref
* count = 2, release EFC, verify ref count = 1. Verifies a file can be
@@ -86,39 +86,39 @@ test_single(void)
*/
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 2: Verify that subsequent efc_open requests return the cached top
* level file pointer. Open file 1 through EFC, close, open again, verify
* file pointers are the same. */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
ftmp1 = f1;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1 != ftmp1)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 3: Verify LRU functionality. Add four files to the EFC and verify
* that the one added first is evicted. Then reopen files in a different
@@ -126,150 +126,150 @@ test_single(void)
* to track ref counts. */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f0, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp4 = H5F__efc_open(f0, filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 4: Verify that files kept open through the EFC are not evicted by
* H5F__efc_release(). */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 5: Verify that files kept open through the EFC are not evicted by
* filling up the cache. Open 4 files while holding the first open. Verify
@@ -277,73 +277,73 @@ test_single(void)
* second, and verify that the first file is evicted. */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared != f1->shared)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f0, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 6: Verify that having a full EFC filled only with open files
* prevents further files from being cached. Open and hold open 3 files
@@ -351,107 +351,107 @@ test_single(void)
* the EFC. */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared != f1->shared)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared != f2->shared)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared != f3->shared)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f0, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 7: Test multiple file opens. Open a file twice, close it once, then
* verify that it is not evicted by H5F__efc_release(). */
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Close parent file */
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
PASSED();
@@ -495,7 +495,7 @@ test_graph_nocycle(void)
* because we don't test the EFC becoming too large in this test.
*/
if (H5Pset_elink_file_cache_size(fapl_id, 8) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Test 1: Simple 3 file chain. Open file 1 through file 0, then open file
* 2 through file 1. Release file 0's EFC and verify that file 2 gets its
@@ -503,107 +503,107 @@ test_graph_nocycle(void)
* opening order reversed.
*/
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F__efc_open(ftmp1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id,
fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 2: 5 file chain. The parent file has 2 child files, each of which
* has their own child file. Verifies that releasing the parent's EFC
* closes all 4 children. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f3, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 3: Simple "inverted" tree. Two parent files share a child file,
* which has its own child file. Verify that the child's child is not
@@ -611,170 +611,170 @@ test_graph_nocycle(void)
* parent, then reopen through that parent and release the other, then
* re-release the first parent. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f1->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 4: Simple "diamond" tree. The parent file has two children, which
* shared the same child. Verify that releasing the parent file closes all
* files. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 5: Dense 5 file graph. f0 caches f1, f2, f3 and f4. f1 and f2
* each cache f3 and f4. f3 caches f4. Verify that releasing f0 closes all
* files. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f0, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F__efc_open(f1, filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F__efc_open(f2, filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F__efc_open(f3, filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp4->shared->nrefs != 5)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
PASSED();
@@ -819,1814 +819,1814 @@ test_graph_cycle(void)
* because we don't test the EFC becoming too large in this test.
*/
if (H5Pset_elink_file_cache_size(fapl_id, 8) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Test 1: File caches itself. Verify that closing the file causes it to be
* actually closed, and there is no other unexpected behavior.
*/
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f0, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f0, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 2: Indirectly referenced file caches itself. Same as above except
* the file is part of another file's EFC. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f1, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f1, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 3: Simple 2 file cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 4: Simple 2 file cycle (indirectly referenced) */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 5: Parallel double cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 6: Parallel double cycle with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 7: Chained parallel double cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 8: Chained parallel double cycle with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 9: Simple 2 file cycle, extra ID on root */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared != ftmp0->shared)
- TEST_ERROR
+ TEST_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 10: Simple 2 file cycle, extra ID on second file */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 11: Parallel double cycle, extra ID on a child file */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 12: Parallel double cycle, extra ID on a child file, with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(ftmp2->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 13: Chained parallel double cycle, extra ID on a child file */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 14: Chained parallel double cycle, extra ID on a child file, with
* release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(ftmp3->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 15: One local and one remote cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 16: One local and one remote cycle, with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 17: One local and one remote cycle, remote cycle held open */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 18: One local and one remote cycle, remote cycle held open, with
* release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (ftmp3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(ftmp3->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (ftmp3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(ftmp3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 19: "Diamond" shape with links moving from bottom (root) to top.
* Also cycle between bottom (root) and top and cycles on the sides. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f1, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f4, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f4, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f5 = H5F__efc_open(f2, filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f5, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f5, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f5) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f5 = H5F_open(filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f5->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f5, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 20: "Diamond" shape with links moving from bottom (root) to top.
* Also cycle between bottom (root) and top, cycles on the sides, and
* release the files instead of closing. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f1, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f4, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f4, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f5 = H5F__efc_open(f2, filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f5, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f5, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f5) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f5 = H5F_open(filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f5->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f5, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 21: "Diamond" shape with links moving from bottom (root) to top.
* Also cycle between bottom (root) and top, cycles on sides held open. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f1, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f4, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f4, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f5 = H5F__efc_open(f2, filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f5, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f5, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f5) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f5 = H5F_open(filename[5], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f5, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f5 = H5F_open(filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f5->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f5, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 22: "Diamond" shape with links moving from bottom (root) to top.
* Also cycle between bottom (root) and top, cycles on sides held open.
* Also release the files instead of closing. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f4 = H5F__efc_open(f1, filename[4], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f4, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f4, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f4) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f4 = H5F_open(filename[4], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f5 = H5F__efc_open(f2, filename[5], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f5, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f5, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f5) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f5 = H5F_open(filename[5], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f4->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f5->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f4->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f5->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f4, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f5, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 23: Dense "ball" of files. 4 files each cache all files (including
* itself). */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f0, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f1, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f2, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f3, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 24: Dense "ball" of files. 4 files each cache all files (including
* itself). Release the files instead of closing. */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f0, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f0, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f1, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f2, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f2, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f2, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f3, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp1 = H5F__efc_open(f3, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp2 = H5F__efc_open(f3, filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp3 = H5F__efc_open(f3, filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f3, ftmp3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 25: File held open by EFC client interrupts cycle, with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 26: File held open by EFC does not interrupt cycle, with release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f0, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 27: File held open by EFC client through non-parent file does not
* interrupt cycle, but parent file does (no valid way around it) */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 3)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 28: File held open by EFC client through non-parent file does not
* interrupt cycle, but parent file does (no valid way around it), with
* release */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F__efc_open(f2, filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f3 = H5F__efc_open(f1, filename[3], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f0->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F__efc_release(f2->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f1, f3) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f2, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F__efc_release(f2->shared->efc) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f3 = H5F_open(filename[3], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f3->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f3, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 29: File without EFC interrupts cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5Pset_elink_file_cache_size(fapl_id, 0) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5Pset_elink_file_cache_size(fapl_id, 8) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
/* Test 30: File without EFC does not interrupt cycle */
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL ==
(f1 = H5F__efc_open(f0, filename[1], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (ftmp0 = H5F__efc_open(f1, filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f1, ftmp0) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5F_efc_close(f0, f1) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5Pset_elink_file_cache_size(fapl_id, 0) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (NULL ==
(f2 = H5F__efc_open(f1, filename[2], H5F_ACC_RDWR | H5F_ACC_CREAT | H5F_ACC_TRUNC, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (H5Pset_elink_file_cache_size(fapl_id, 8) < 0)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_efc_close(f1, f2) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 2)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f0 = H5F_open(filename[0], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f0->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f0, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f1 = H5F_open(filename[1], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f1->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f1, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (NULL == (f2 = H5F_open(filename[2], H5F_ACC_RDWR, fcpl_id, fapl_id)))
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
if (f2->shared->nrefs != 1)
- TEST_ERROR
+ TEST_ERROR;
if (H5F_try_close(f2, NULL) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
PASSED();
@@ -2679,7 +2679,7 @@ main(void)
/* Push API context */
if (H5CX_push() < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
api_ctx_pushed = TRUE;
/* Get the VOL info from the fapl */
@@ -2698,14 +2698,14 @@ main(void)
/* Close property lists */
if (H5Pclose(fcpl_id) < 0)
- TEST_ERROR
+ TEST_ERROR;
/* Verify symbol table messages are cached */
nerrors += (h5_verify_cached_stabs(FILENAME, fapl_id) < 0 ? 1 : 0);
/* Pop API context */
if (api_ctx_pushed && H5CX_pop(FALSE) < 0)
- FAIL_STACK_ERROR
+ FAIL_STACK_ERROR;
api_ctx_pushed = FALSE;
if (nerrors)