summaryrefslogtreecommitdiffstats
path: root/test/dangle.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dangle.c')
-rw-r--r--test/dangle.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/dangle.c b/test/dangle.c
index 4e1154a..2f6ad7b 100644
--- a/test/dangle.c
+++ b/test/dangle.c
@@ -186,13 +186,12 @@ test_dangle_group(H5F_close_degree_t degree)
if(gid >= 0) TEST_ERROR
/* Leave open a _lot_ of objects */
- for(u=0; u<MAX_DANGLE; u++) {
- if((gid = H5Gopen (fid, GROUPNAME))<0)
- TEST_ERROR;
- } /* end for */
+ for(u = 0; u < MAX_DANGLE; u++)
+ if((gid = H5Gopen2(fid, GROUPNAME, H5P_DEFAULT)) < 0)
+ FAIL_STACK_ERROR
- if((gid = H5Gopen (fid, GROUPNAME))<0)
- TEST_ERROR;
+ if((gid = H5Gopen2(fid, GROUPNAME, H5P_DEFAULT)) < 0)
+ FAIL_STACK_ERROR
if(degree==H5F_CLOSE_SEMI) {
H5E_BEGIN_TRY {