summaryrefslogtreecommitdiffstats
path: root/test/getname.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/getname.c')
-rw-r--r--test/getname.c1448
1 files changed, 724 insertions, 724 deletions
diff --git a/test/getname.c b/test/getname.c
index 5ee2139..b3f1b2a 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -91,7 +91,7 @@ int main( void )
h5_fixname(FILENAME[3], fapl, filename3, sizeof filename3);
/* Create a new file_id using default properties. */
- if ((file_id = H5Fcreate( filename0, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
+ if ((file_id = H5Fcreate( filename0, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
/*-------------------------------------------------------------------------
@@ -102,13 +102,13 @@ int main( void )
TESTING("H5Iget_name with H5Gcreate, one group");
/* Create group "g0" in the root group using absolute name */
- if ((group_id = H5Gcreate( file_id, "/g0", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g0", 0 ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g0" )!=0) goto out;
+ if (check_name( name, "/g0" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -125,24 +125,24 @@ int main( void )
TESTING("H5Iget_name with H5Gcreate, more than one group");
/* Create group "g1" in the root group using absolute name */
- if ((group_id = H5Gcreate( file_id, "/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g1", 0 ))<0) TEST_ERROR;
/* Create group "g2" in group "g1" using absolute name */
- if ((group2_id = H5Gcreate( file_id, "/g1/g2", 0 ))<0) goto out;
+ if ((group2_id = H5Gcreate( file_id, "/g1/g2", 0 ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1" )!=0)
- goto out;
+ TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/g2" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -159,24 +159,24 @@ int main( void )
TESTING("H5Iget_name with H5Gopen");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g1" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g1" ))<0) TEST_ERROR;
/* Reopen the group */
- if ((group2_id = H5Gopen( file_id, "/g1/g2" ))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g1/g2" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1" )!=0)
- goto out;
+ TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/g2" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -195,35 +195,35 @@ int main( void )
TESTING("H5Iget_name with H5Dcreate");
/* Create the data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Create a new dataset */
if ((dataset_id = H5Dcreate( file_id , "d1", H5T_NATIVE_INT, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/d1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "g1" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "g1" ))<0) TEST_ERROR;
/* Create a new dataset inside "g1" */
if ((dataset_id = H5Dcreate( group_id , "d1", H5T_NATIVE_INT, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/d1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -242,31 +242,31 @@ int main( void )
TESTING("H5Iget_name with H5Dopen");
/* Reopen the dataset */
- if ((dataset_id = H5Dopen( file_id, "d1"))<0) goto out;
+ if ((dataset_id = H5Dopen( file_id, "d1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/d1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "g1" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "g1" ))<0) TEST_ERROR;
/* Reopen the dataset */
- if ((dataset_id = H5Dopen( group_id, "d1"))<0) goto out;
+ if ((dataset_id = H5Dopen( group_id, "d1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/d1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -284,14 +284,14 @@ int main( void )
TESTING("H5Iget_name with a long path");
/* Create group "g2/bar/baz" */
- if ((group_id = H5Gcreate( file_id, "g2", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g2/bar", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "g2/bar/baz", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g2", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g2/bar", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "g2/bar/baz", 0 ))<0) TEST_ERROR;
/* Create a dataset */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
if ((dataset_id = H5Dcreate( group3_id , "d1", H5T_NATIVE_INT, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -301,14 +301,14 @@ int main( void )
H5Gclose( group3_id );
/* Reopen the dataset */
- if ((dataset_id = H5Dopen( file_id, "/g2/bar/baz/d1"))<0) goto out;
+ if ((dataset_id = H5Dopen( file_id, "/g2/bar/baz/d1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )< 0) goto out;
+ if (H5Iget_name( dataset_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g2/bar/baz/d1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -324,22 +324,22 @@ int main( void )
TESTING("H5Iget_name with H5Tcommit");
/* Create a datatype */
- if ((type_id = H5Tcreate (H5T_COMPOUND, sizeof(s1_t)))<0) goto out;
+ if ((type_id = H5Tcreate (H5T_COMPOUND, sizeof(s1_t)))<0) TEST_ERROR;
/* Insert fields */
- if (H5Tinsert (type_id, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT)<0) goto out;
- if (H5Tinsert (type_id, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT)<0) goto out;
- if (H5Tinsert (type_id, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT)<0) goto out;
+ if (H5Tinsert (type_id, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT)<0) TEST_ERROR;
+ if (H5Tinsert (type_id, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT)<0) TEST_ERROR;
+ if (H5Tinsert (type_id, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT)<0) TEST_ERROR;
/* Save datatype for later */
- if (H5Tcommit (file_id, "t1", type_id)<0) goto out;
+ if (H5Tcommit (file_id, "t1", type_id)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( type_id, name, size )<0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/t1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close datatype */
H5Tclose(type_id);
@@ -354,14 +354,14 @@ int main( void )
TESTING("H5Iget_name with H5Topen");
/* Open the named datatype */
- if((type_id=H5Topen(file_id, "t1"))<0) goto out;
+ if((type_id=H5Topen(file_id, "t1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( type_id, name, size )<0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/t1" )!=0)
- goto out;
+ TEST_ERROR;
/* Close datatype */
@@ -379,16 +379,16 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and H5Gopen");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g1" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g1" ))<0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( file_id, "/g1", "/g1a" )<0) goto out;
+ if (H5Gmove( file_id, "/g1", "/g1a" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1a" )!=0) goto out;
+ if (check_name( name, "/g1a" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -406,17 +406,17 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and H5Dopen");
/* Reopen the dataset */
- if ((dataset_id = H5Dopen( file_id, "/d1"))<0) goto out;
+ if ((dataset_id = H5Dopen( file_id, "/d1"))<0) TEST_ERROR;
/* Rename dataset */
- if (H5Gmove( file_id, "/d1", "/d1a" )<0) goto out;
+ if (H5Gmove( file_id, "/d1", "/d1a" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/d1a" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -434,17 +434,17 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and H5Topen");
/* Open the named datatype */
- if((type_id=H5Topen(file_id, "/t1"))<0) goto out;
+ if((type_id=H5Topen(file_id, "/t1"))<0) TEST_ERROR;
/* Rename datatype */
- if (H5Gmove( file_id, "/t1", "/t1a" )<0) goto out;
+ if (H5Gmove( file_id, "/t1", "/t1a" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( type_id, name, size )<0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/t1a" )!=0)
- goto out;
+ TEST_ERROR;
/* Close datatype */
@@ -460,55 +460,55 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and relative names");
/* Create group "/g3" */
- if ((group_id = H5Gcreate( file_id, "/g3", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g3", 0 ))<0) TEST_ERROR;
/* Create group "/g3/foo" using absolute name */
- if ((group2_id = H5Gcreate( file_id, "/g3/foo1", 0 ))<0) goto out;
+ if ((group2_id = H5Gcreate( file_id, "/g3/foo1", 0 ))<0) TEST_ERROR;
/* Open group "/g3/foo" again */
- if ((group3_id = H5Gopen( file_id, "/g3/foo1"))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g3/foo1"))<0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( group_id, "foo1", "foo2" )<0) goto out;
+ if (H5Gmove( group_id, "foo1", "foo2" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3" )!=0) goto out;
+ if (check_name( name, "/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/foo2" )!=0) goto out;
+ if (check_name( name, "/g3/foo2" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/foo2" )!=0) goto out;
+ if (check_name( name, "/g3/foo2" )!=0) TEST_ERROR;
/* Rename group again */
- if (H5Gmove( file_id, "g3/foo2", "g3/foo1" )<0) goto out;
+ if (H5Gmove( file_id, "g3/foo2", "g3/foo1" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3" )!=0) goto out;
+ if (check_name( name, "/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/foo1" )!=0) goto out;
+ if (check_name( name, "/g3/foo1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/foo1" )!=0) goto out;
+ if (check_name( name, "/g3/foo1" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -528,53 +528,53 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and a long path");
/* Create group "g4/A/B" */
- if ((group_id = H5Gcreate( file_id, "g4", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g4/A", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "g4/A/B", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g4", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g4/A", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "g4/A/B", 0 ))<0) TEST_ERROR;
/* Create group "g5/C" */
- if ((group4_id = H5Gcreate( file_id, "g5", 0 ))<0) goto out;
- if ((group5_id = H5Gcreate( file_id, "g5/C", 0 ))<0) goto out;
+ if ((group4_id = H5Gcreate( file_id, "g5", 0 ))<0) TEST_ERROR;
+ if ((group5_id = H5Gcreate( file_id, "g5/C", 0 ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g4/A/B" )!=0)
- goto out;
+ TEST_ERROR;
/* Move group "B" to "D"*/
- if (H5Gmove( file_id, "/g4/A/B", "/g5/C/D" )<0) goto out;
+ if (H5Gmove( file_id, "/g4/A/B", "/g5/C/D" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g5/C/D" )!=0) goto out;
+ if (check_name( name, "/g5/C/D" )!=0) TEST_ERROR;
/* Move group "/g5/C/D" back to "/g4/A/B" using relative name */
- if (H5Gmove2( group5_id, "D", group2_id, "B" )<0) goto out;
+ if (H5Gmove2( group5_id, "D", group2_id, "B" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g4/A/B" )!=0) goto out;
+ if (check_name( name, "/g4/A/B" )!=0) TEST_ERROR;
/* Move group "/g4/A/B" to "/g4/F/B" using relative name */
- if (H5Gmove2( group_id, "A", group_id, "F")<0) goto out;
+ if (H5Gmove2( group_id, "A", group_id, "F")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g4/F/B" )!=0) goto out;
+ if (check_name( name, "/g4/F/B" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g4/F" )!=0) goto out;
+ if (check_name( name, "/g4/F" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -594,32 +594,32 @@ int main( void )
TESTING("H5Iget_name with H5Gmove and a long path #2");
/* Create group "g6/A/B" and "g7" */
- if ((group_id = H5Gcreate( file_id, "g6", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g6/A", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "g6/A/B", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file_id, "g7", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g6", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g6/A", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "g6/A/B", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file_id, "g7", 0 ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g6/A/B" )!=0)
- goto out;
+ TEST_ERROR;
/* Move group "A" to "C"*/
- if (H5Gmove( file_id, "/g6/A", "/g7/C" )<0) goto out;
+ if (H5Gmove( file_id, "/g6/A", "/g7/C" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g7/C" )!=0) goto out;
+ if (check_name( name, "/g7/C" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g7/C/B" )!=0) goto out;
+ if (check_name( name, "/g7/C/B" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -637,16 +637,16 @@ int main( void )
TESTING("H5Iget_name with H5Gunlink");
/* Create a new group. */
- if ((group_id = H5Gcreate( file_id, "/g8", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g8", 0 ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file_id, "/g8")<0) goto out;
+ if (H5Gunlink( file_id, "/g8")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -661,47 +661,47 @@ int main( void )
TESTING("H5Iget_name with H5Gunlink and a long path");
/* Create group "g9/a/b" */
- if ((group_id = H5Gcreate( file_id, "g9", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g9/a", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "g9/a/b", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g9", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g9/a", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "g9/a/b", 0 ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file_id, "/g9/a")<0) goto out;
+ if (H5Gunlink( file_id, "/g9/a")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group2_id );
H5Gclose( group3_id );
/* Recreate groups */
- if ((group2_id = H5Gcreate( group_id, "a", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( group_id, "a/b", 0 ))<0) goto out;
+ if ((group2_id = H5Gcreate( group_id, "a", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( group_id, "a/b", 0 ))<0) TEST_ERROR;
/* Delete, using relative path */
- if (H5Gunlink( group_id, "a")<0) goto out;
+ if (H5Gunlink( group_id, "a")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group2_id );
@@ -711,33 +711,33 @@ int main( void )
H5Gclose( group_id );
/* Create group "g10/a/b" */
- if ((group_id = H5Gcreate( file_id, "g10", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g10/a", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "g10/a/b", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g10", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g10/a", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "g10/a/b", 0 ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file_id, "/g10/a/b")<0) goto out;
+ if (H5Gunlink( file_id, "/g10/a/b")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group3_id );
/* Recreate group */
- if ((group3_id = H5Gcreate( group_id, "a/b", 0 ))<0) goto out;
+ if ((group3_id = H5Gcreate( group_id, "a/b", 0 ))<0) TEST_ERROR;
/* Delete, using relative path */
- if (H5Gunlink( group_id, "a/b")<0) goto out;
+ if (H5Gunlink( group_id, "a/b")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group3_id );
@@ -757,28 +757,28 @@ int main( void )
/* Create group "g11/g" */
- if ((group_id = H5Gcreate( file_id, "g11", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "g11/g", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g11", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "g11/g", 0 ))<0) TEST_ERROR;
/* Create two datasets "g11/d" and "g11/g/d"*/
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
- if ((dataset_id = H5Dcreate( group_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
- if ((dataset2_id = H5Dcreate( group2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
+ if ((dataset_id = H5Dcreate( group_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
+ if ((dataset2_id = H5Dcreate( group2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file_id, "/g11/d")<0) goto out;
+ if (H5Gunlink( file_id, "/g11/d")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset2_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g11/g/d" )!=0) goto out;
+ if (check_name( name, "/g11/g/d" )!=0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -798,7 +798,7 @@ int main( void )
TESTING("H5Iget_name with H5Fmount; with IDs on the list");
/* Create a group "g12" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g12", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g12", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -807,27 +807,27 @@ int main( void )
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
/* Create a data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Create the dataset */
- if ((dataset_id = H5Dcreate( file1_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((dataset_id = H5Dcreate( file1_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
/* Mount second file under "g12" in the first file */
- if (H5Fmount(file_id, "/g12", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g12", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Access dataset D in the first file under "/G/D" name */
- if ((dataset_id = H5Dopen( file_id, "/g12/d"))<0) goto out;
+ if ((dataset_id = H5Dopen( file_id, "/g12/d"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )< 0) goto out;
+ if (H5Iget_name( dataset_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g12/d" )!=0) goto out;
+ if (check_name( name, "/g12/d" )!=0) TEST_ERROR;
- if (H5Funmount(file_id, "/g12")<0) goto out;
+ if (H5Funmount(file_id, "/g12")<0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -846,9 +846,9 @@ int main( void )
TESTING("H5Iget_name with H5Fmount; long name");
/* Create a group "g13/g1/g2" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g13", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g13/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g13/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g13", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g13/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g13/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -858,9 +858,9 @@ int main( void )
/* Create second file and group "g" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g14", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g14/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g14/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g14", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g14/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g14/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -868,78 +868,78 @@ int main( void )
H5Gclose( group3_id );
/* Mount second file under "/g13/g1" in the first file */
- if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
- if (H5Funmount(file_id, "/g13/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g13/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
/* Mount second file under "/g13/g1" in the first file (again) */
- if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get a group ID for the parent of the newly mounted group */
- if ((group2_id = H5Gopen( file_id, "/g13"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g13"))<0) TEST_ERROR;
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
- if (H5Funmount(group2_id, "g1")<0) goto out;
+ if (H5Funmount(group2_id, "g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
H5Gclose( group2_id );
/* Mount second file under "/g13/g1" in the first file (again) */
- if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g13/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get a group ID for the newly mounted group */
- if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) TEST_ERROR;
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
- if (H5Funmount(group2_id, ".")<0) goto out;
+ if (H5Funmount(group2_id, ".")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -947,56 +947,56 @@ int main( void )
/* Mount second file under "/g13/g1" in the first file, using relative path */
- if ((group3_id = H5Gopen( file_id, "/g13"))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g13"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13" )!=0) goto out;
+ if (check_name( name, "/g13" )!=0) TEST_ERROR;
- if (H5Fmount(group3_id, "g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(group3_id, "g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get a group ID for the newly mounted group */
- if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1" )!=0) goto out;
+ if (check_name( name, "/g13/g1" )!=0) TEST_ERROR;
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
/* Access group in the first file, with relative path */
- if ((group_id = H5Gopen( group2_id, "g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( group2_id, "g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
- if (H5Funmount(group2_id, ".")<0) goto out;
+ if (H5Funmount(group2_id, ".")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group2_id );
@@ -1004,56 +1004,56 @@ int main( void )
/* Mount second file under "/g13/g1" in the first file, using relative path */
- if ((group3_id = H5Gopen( file_id, "/g13/g1"))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g13/g1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1" )!=0) goto out;
+ if (check_name( name, "/g13/g1" )!=0) TEST_ERROR;
- if (H5Fmount(group3_id, ".", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(group3_id, ".", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get a group ID for the newly mounted group */
- if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g13/g1"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1" )!=0) goto out;
+ if (check_name( name, "/g13/g1" )!=0) TEST_ERROR;
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g13/g1/g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
/* Access group in the first file, with relative path */
- if ((group_id = H5Gopen( group2_id, "g14/g3/g4"))<0) goto out;
+ if ((group_id = H5Gopen( group2_id, "g14/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g13/g1/g14/g3/g4" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
- if (H5Funmount(group2_id, ".")<0) goto out;
+ if (H5Funmount(group2_id, ".")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group2_id );
@@ -1073,10 +1073,10 @@ int main( void )
TESTING("H5Iget_name with H5Funmount");
/* Create a group "g15/g1/g2" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g15", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g15/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g15/g1/g2", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file_id, "/g15/g1/g2/g3", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g15", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g15/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g15/g1/g2", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file_id, "/g15/g1/g2/g3", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1087,9 +1087,9 @@ int main( void )
/* Create second file and group "g" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g16", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g16/g4", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g16/g4/g5", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g16", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g16/g4", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g16/g4/g5", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1097,43 +1097,43 @@ int main( void )
H5Gclose( group3_id );
/* Access group in the first file */
- if ((group_id = H5Gopen( file_id, "/g15/g1/g2/g3"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g15/g1/g2/g3"))<0) TEST_ERROR;
/* Mount second file under "/g13/g1" in the first file */
- if (H5Fmount(file_id, "/g15/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g15/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Access group in the second file */
- if ((group2_id = H5Gopen( file_id, "/g15/g1/g16/g4/g5"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g15/g1/g16/g4/g5"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "" )!=0)
- goto out;
+ TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g15/g1/g16/g4/g5" )!=0)
- goto out;
+ TEST_ERROR;
- if (H5Funmount(file_id, "/g15/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g15/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g15/g1/g2/g3" )!=0)
- goto out;
+ TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1152,25 +1152,25 @@ int main( void )
TESTING("H5Iget_name with a defined type dataset");
/* Create a datatype */
- if ((type_id = H5Tcreate (H5T_COMPOUND, sizeof(s1_t)))<0) goto out;
+ if ((type_id = H5Tcreate (H5T_COMPOUND, sizeof(s1_t)))<0) TEST_ERROR;
/* Insert fields */
- if (H5Tinsert (type_id, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT)<0) goto out;
- if (H5Tinsert (type_id, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT)<0) goto out;
- if (H5Tinsert (type_id, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT)<0) goto out;
+ if (H5Tinsert (type_id, "a", HOFFSET(s1_t,a), H5T_NATIVE_INT)<0) TEST_ERROR;
+ if (H5Tinsert (type_id, "b", HOFFSET(s1_t,b), H5T_NATIVE_INT)<0) TEST_ERROR;
+ if (H5Tinsert (type_id, "c", HOFFSET(s1_t,c), H5T_NATIVE_FLOAT)<0) TEST_ERROR;
/* Create group "g17" */
- if ((group_id = H5Gcreate( file_id, "g17", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "g17", 0 ))<0) TEST_ERROR;
/* Save datatype for later */
- if (H5Tcommit (group_id, "t", type_id)<0) goto out;
+ if (H5Tcommit (group_id, "t", type_id)<0) TEST_ERROR;
/* Create a data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Create a new dataset */
if ((dataset_id = H5Dcreate( group_id , "d", type_id, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -1179,30 +1179,30 @@ int main( void )
H5Gclose( group_id );
/* Open the named datatype */
- if((type_id=H5Topen(file_id, "/g17/t"))<0) goto out;
+ if((type_id=H5Topen(file_id, "/g17/t"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( type_id, name, size )<0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g17/t" )!=0)
- goto out;
+ TEST_ERROR;
/* Close datatype */
H5Tclose(type_id);
/* Reopen the dataset */
- if ((dataset_id = H5Dopen( file_id, "/g17/d"))<0) goto out;
+ if ((dataset_id = H5Dopen( file_id, "/g17/d"))<0) TEST_ERROR;
/* Get datatype*/
- if((type_id=H5Dget_type(dataset_id))<0) goto out;
+ if((type_id=H5Dget_type(dataset_id))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( type_id, name, size )< 0) goto out;
+ if (H5Iget_name( type_id, name, size )< 0) TEST_ERROR;
/* Verify */
if (check_name( name, "" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -1219,21 +1219,21 @@ int main( void )
TESTING("H5Iget_name with datasets that have two names");
/* Open dataset named "d"*/
-if ((dataset_id = H5Dopen( file_id, "/g17/d"))<0) goto out;
+if ((dataset_id = H5Dopen( file_id, "/g17/d"))<0) TEST_ERROR;
/* Create link to dataset named "link" */
-if (H5Glink2(dataset_id,".",H5G_LINK_HARD,file_id,"/g17/link")<0) goto out;
-if ((dataset2_id = H5Dopen( file_id, "/g17/link"))<0) goto out;
+if (H5Glink2(dataset_id,".",H5G_LINK_HARD,file_id,"/g17/link")<0) TEST_ERROR;
+if ((dataset2_id = H5Dopen( file_id, "/g17/link"))<0) TEST_ERROR;
/* Make sure that the two IDs use two different names */
-if(H5Iget_name(dataset_id, name, size)<0) goto out;
-if(check_name(name, "/g17/d")!=0) goto out;
+if(H5Iget_name(dataset_id, name, size)<0) TEST_ERROR;
+if(check_name(name, "/g17/d")!=0) TEST_ERROR;
-if(H5Iget_name(dataset2_id, name, size)<0) goto out;
-if(check_name(name, "/g17/link")!=0) goto out;
+if(H5Iget_name(dataset2_id, name, size)<0) TEST_ERROR;
+if(check_name(name, "/g17/link")!=0) TEST_ERROR;
-if(H5Dclose(dataset_id)<0) goto out;
-if(H5Dclose(dataset2_id)<0) goto out;
+if(H5Dclose(dataset_id)<0) TEST_ERROR;
+if(H5Dclose(dataset2_id)<0) TEST_ERROR;
PASSED();
@@ -1245,34 +1245,34 @@ PASSED();
TESTING("H5Iget_name with different files");
/* Create a new file using default properties. */
- if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
+ if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
/* Create a new file using default properties. */
- if ((file3_id = H5Fcreate( filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
+ if ((file3_id = H5Fcreate( filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
/* Create the data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Create a new dataset */
- if ((dataset_id = H5Dcreate( file2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((dataset_id = H5Dcreate( file2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Create a new dataset */
- if ((dataset2_id = H5Dcreate( file3_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((dataset2_id = H5Dcreate( file3_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file2_id, "/d")<0) goto out;
+ if (H5Gunlink( file2_id, "/d")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset2_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/d" )!=0) goto out;
+ if (check_name( name, "/d" )!=0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -1292,34 +1292,34 @@ PASSED();
TESTING("H5Iget_name with different files #2");
/* Create a new file using default properties. */
- if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
+ if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
/* Create a new file using default properties. */
- if ((file3_id = H5Fcreate( filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
+ if ((file3_id = H5Fcreate( filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
/* Create the data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Create a new dataset */
- if ((dataset_id = H5Dcreate( file2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((dataset_id = H5Dcreate( file2_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Create a new dataset */
- if ((dataset2_id = H5Dcreate( file3_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) goto out;
+ if ((dataset2_id = H5Dcreate( file3_id , "d", H5T_NATIVE_INT, space_id, H5P_DEFAULT ))<0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file3_id, "/d")<0) goto out;
+ if (H5Gunlink( file3_id, "/d")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/d" )!=0) goto out;
+ if (check_name( name, "/d" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( dataset2_id, name, size )<0) goto out;
+ if (H5Iget_name( dataset2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -1338,7 +1338,7 @@ PASSED();
TESTING("H5Iget_name with a small buffer for name");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g17" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g17" ))<0) TEST_ERROR;
/* Get name */
name_len=H5Iget_name( group_id, name2, size2 );
@@ -1348,7 +1348,7 @@ PASSED();
name_len=H5Iget_name( group_id, name, size );
/* Verify */
- if (check_name( name, "/g17" )!=0) goto out;
+ if (check_name( name, "/g17" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1364,7 +1364,7 @@ PASSED();
TESTING("H5Iget_name with a dynamic buffer for name");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g17" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g17" ))<0) TEST_ERROR;
/* Get name */
name_len=H5Iget_name( group_id, NULL, size );
@@ -1373,18 +1373,18 @@ PASSED();
name3 = malloc(name_len+1);
/* Get name */
- if (H5Iget_name( group_id, name3, name_len+1 )<0) goto out;
+ if (H5Iget_name( group_id, name3, name_len+1 )<0) TEST_ERROR;
/* Verify */
if (check_name( name3, "/g17" )!=0)
- goto out;
+ TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name3, 3 )<0) goto out;
+ if (H5Iget_name( group_id, name3, 3 )<0) TEST_ERROR;
/* Verify */
if (check_name( name3, "/g" )!=0)
- goto out;
+ TEST_ERROR;
if ( name3 )
free(name3);
@@ -1404,20 +1404,20 @@ PASSED();
TESTING("H5Iget_name with invalid IDs");
/* Create a data space */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
/* Define a datatype */
- if ((type_id = H5Tcopy(H5T_NATIVE_INT))<0) goto out;
+ if ((type_id = H5Tcopy(H5T_NATIVE_INT))<0) TEST_ERROR;
/* Create a new dataset */
if ((dataset_id = H5Dcreate( file_id , "d2", type_id, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
/* Get name for non commited datatype, it should fail */
- if (H5Iget_name( type_id, name, size ) >0) goto out;
+ if (H5Iget_name( type_id, name, size ) >0) TEST_ERROR;
/* Get name for data space, it should fail */
- if (H5Iget_name( space_id, name, size ) >0) goto out;
+ if (H5Iget_name( space_id, name, size ) >0) TEST_ERROR;
/* Close */
H5Dclose( dataset_id );
@@ -1435,85 +1435,85 @@ PASSED();
TESTING("H5Iget_name with added names with mounting");
/* Create a group "g18/g2" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g18", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g18/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g18", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g18/g2", 0 ))<0) TEST_ERROR;
/* Also create a dataset and a datatype */
- if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) goto out;
- if ((type_id = H5Tcopy(H5T_NATIVE_INT))<0) goto out;
+ if ((space_id = H5Screate_simple( 1, dims, NULL ))<0) TEST_ERROR;
+ if ((type_id = H5Tcopy(H5T_NATIVE_INT))<0) TEST_ERROR;
if ((dataset_id = H5Dcreate( file_id, "g18/d2", type_id, space_id,
- H5P_DEFAULT ))<0) goto out;
+ H5P_DEFAULT ))<0) TEST_ERROR;
- if (H5Tcommit(file_id, "g18/t2", type_id) <0) goto out;
+ if (H5Tcommit(file_id, "g18/t2", type_id) <0) TEST_ERROR;
/* Create second file and group "/g3/g4/g5" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group3_id = H5Gcreate( file1_id, "/g3", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file1_id, "/g3/g4", 0 ))<0) goto out;
- if ((group5_id = H5Gcreate( file1_id, "/g3/g4/g5", 0 ))<0) goto out;
+ if ((group3_id = H5Gcreate( file1_id, "/g3", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file1_id, "/g3/g4", 0 ))<0) TEST_ERROR;
+ if ((group5_id = H5Gcreate( file1_id, "/g3/g4/g5", 0 ))<0) TEST_ERROR;
/* Mount first file at "g3/g4" in the second file */
- if (H5Fmount(file1_id, "/g3/g4", file_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file1_id, "/g3/g4", file_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name for the group ID in the first file, should be "/g18/g2" still */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
- if (check_name( name, "/g18/g2" )!=0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/g2" )!=0) TEST_ERROR;
/* Get name for the dataset ID in the first file, should be "/g18/g2/d2" still */
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
- if (check_name( name, "/g18/d2" )!=0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/d2" )!=0) TEST_ERROR;
/* Get name for the datatype ID in the first file, should be "/g18/g2/t2" still */
- if (H5Iget_name( type_id, name, size )<0) goto out;
- if (check_name( name, "/g18/t2" )!=0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/t2" )!=0) TEST_ERROR;
/* Open the mounted group, dataset, and datatype through their new names */
- if ((group6_id = H5Gopen( file1_id, "/g3/g4/g18/g2" ))<0) goto out;
- if ((dataset2_id = H5Dopen( file1_id, "/g3/g4/g18/d2" ))<0) goto out;
- if ((type2_id = H5Topen( file1_id, "/g3/g4/g18/t2" ))<0) goto out;
+ if ((group6_id = H5Gopen( file1_id, "/g3/g4/g18/g2" ))<0) TEST_ERROR;
+ if ((dataset2_id = H5Dopen( file1_id, "/g3/g4/g18/d2" ))<0) TEST_ERROR;
+ if ((type2_id = H5Topen( file1_id, "/g3/g4/g18/t2" ))<0) TEST_ERROR;
/* Verify names */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
- if (check_name( name, "/g3/g4/g18/g2" )!=0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g3/g4/g18/g2" )!=0) TEST_ERROR;
- if (H5Iget_name( dataset2_id, name, size )<0) goto out;
- if (check_name( name, "/g3/g4/g18/d2" )!=0) goto out;
+ if (H5Iget_name( dataset2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g3/g4/g18/d2" )!=0) TEST_ERROR;
- if (H5Iget_name( type2_id, name, size )<0) goto out;
- if (check_name( name, "/g3/g4/g18/t2" )!=0) goto out;
+ if (H5Iget_name( type2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g3/g4/g18/t2" )!=0) TEST_ERROR;
/* Verify that old IDs still refer to objects by their old names */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
- if (check_name( name, "/g18/g2" )!=0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/g2" )!=0) TEST_ERROR;
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
- if (check_name( name, "/g18/d2" )!=0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/d2" )!=0) TEST_ERROR;
- if (H5Iget_name( type_id, name, size )<0) goto out;
- if (check_name( name, "/g18/t2" )!=0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/t2" )!=0) TEST_ERROR;
/* Unmount */
- if (H5Funmount(file1_id, "/g3/g4")<0) goto out;
+ if (H5Funmount(file1_id, "/g3/g4")<0) TEST_ERROR;
/* Get name for the IDs of the first file, should be unchanged */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
- if (check_name( name, "/g18/g2" )!=0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/g2" )!=0) TEST_ERROR;
- if (H5Iget_name( dataset_id, name, size )<0) goto out;
- if (check_name( name, "/g18/d2" )!=0) goto out;
+ if (H5Iget_name( dataset_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/d2" )!=0) TEST_ERROR;
- if (H5Iget_name( type_id, name, size )<0) goto out;
- if (check_name( name, "/g18/t2" )!=0) goto out;
+ if (H5Iget_name( type_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "/g18/t2" )!=0) TEST_ERROR;
/* Get name for the IDs of the second file, should be "" */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
- if (check_name( name, "" )!=0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "" )!=0) TEST_ERROR;
- if (H5Iget_name( dataset2_id, name, size )<0) goto out;
- if (check_name( name, "" )!=0) goto out;
+ if (H5Iget_name( dataset2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "" )!=0) TEST_ERROR;
- if (H5Iget_name( type2_id, name, size )<0) goto out;
- if (check_name( name, "" )!=0) goto out;
+ if (H5Iget_name( type2_id, name, size )<0) TEST_ERROR;
+ if (check_name( name, "" )!=0) TEST_ERROR;
H5Tclose( type_id );
H5Tclose( type2_id );
@@ -1539,25 +1539,25 @@ PASSED();
/* Create a file and group "/g1/g2" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) TEST_ERROR;
/* Get name for the ID */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/g2" )!=0)
- goto out;
+ TEST_ERROR;
/* Close file */
H5Fclose( file1_id );
/* Get name for the ID */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
if (check_name( name, "/g1/g2" )!=0)
- goto out;
+ TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1575,40 +1575,40 @@ PASSED();
/* Create a file and group "/g1/g2" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) TEST_ERROR;
/* Create a new file and group "/g3/g4" in it */
- if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g3", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file2_id, "/g3/g4", 0 ))<0) goto out;
+ if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g3", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file2_id, "/g3/g4", 0 ))<0) TEST_ERROR;
/* Mount first file at "/g3/g4" in the second file */
- if(H5Fmount(file2_id, "/g3/g4", file1_id, H5P_DEFAULT)<0) goto out;
+ if(H5Fmount(file2_id, "/g3/g4", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Open the mounted group */
- if ((group5_id = H5Gopen( file2_id, "/g3/g4/g1/g2" ))<0) goto out;
+ if ((group5_id = H5Gopen( file2_id, "/g3/g4/g1/g2" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1/g2" )!=0) TEST_ERROR;
/* Delete */
- if (H5Gunlink( file1_id, "/g3/g4/g1/g2")<0) goto out;
+ if (H5Gunlink( file1_id, "/g3/g4/g1/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1632,136 +1632,136 @@ PASSED();
/* Create a file and group "/g1/g2" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g1", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g1/g2", 0 ))<0) TEST_ERROR;
/* Create a new file and group "/g3/g4" in it */
- if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g3", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file2_id, "/g3/g4", 0 ))<0) goto out;
+ if ((file2_id = H5Fcreate( filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g3", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file2_id, "/g3/g4", 0 ))<0) TEST_ERROR;
/* Mount first file at "g3/g4" in the second file */
- if(H5Fmount(file2_id, "/g3/g4", file1_id, H5P_DEFAULT)<0) goto out;
+ if(H5Fmount(file2_id, "/g3/g4", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g3/g4" )!=0) TEST_ERROR;
/* Open the mounted group */
- if ((group5_id = H5Gopen( file2_id, "/g3/g4/g1/g2" ))<0) goto out;
+ if ((group5_id = H5Gopen( file2_id, "/g3/g4/g1/g2" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1/g2" )!=0) TEST_ERROR;
/* Open another mounted group, in the middle of the path */
- if ((group6_id = H5Gopen( file2_id, "/g3/g4/g1" ))<0) goto out;
+ if ((group6_id = H5Gopen( file2_id, "/g3/g4/g1" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1" )!=0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( file2_id, "/g3/g4/g1/g2", "/g3/g4/g1/g5" )<0) goto out;
+ if (H5Gmove( file2_id, "/g3/g4/g1/g2", "/g3/g4/g1/g5" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1/g5" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1/g5" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1/g5" )!=0) goto out;
+ if (check_name( name, "/g1/g5" )!=0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( file2_id, "/g3/g4/g1", "/g3/g4/g1a" )<0) goto out;
+ if (H5Gmove( file2_id, "/g3/g4/g1", "/g3/g4/g1a" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1a/g5" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1a/g5" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1a/g5" )!=0) goto out;
+ if (check_name( name, "/g1a/g5" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1a" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1a" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1a" )!=0) goto out;
+ if (check_name( name, "/g1a" )!=0) TEST_ERROR;
/* Rename middle group back, using relative path */
- if (H5Gmove( group3_id, "g4/g1a", "g4/g1" )<0) goto out;
+ if (H5Gmove( group3_id, "g4/g1a", "g4/g1" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1/g5" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1/g5" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1/g5" )!=0) goto out;
+ if (check_name( name, "/g1/g5" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1" )!=0) goto out;
+ if (check_name( name, "/g1" )!=0) TEST_ERROR;
/* Rename end group back, using relative path */
- if (H5Gmove( group3_id, "g4/g1/g5", "g4/g1/g2" )<0) goto out;
+ if (H5Gmove( group3_id, "g4/g1/g5", "g4/g1/g2" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1/g2" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g1/g2" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g3/g4/g1" )!=0) goto out;
+ if (check_name( name, "/g3/g4/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g1" )!=0) goto out;
+ if (check_name( name, "/g1" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1783,125 +1783,125 @@ PASSED();
TESTING("H5Iget_name with H5Glink hard");
/* Create group "g19/g1" */
- if ((group_id = H5Gcreate( file_id, "/g19", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g19/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g19", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g19/g1", 0 ))<0) TEST_ERROR;
/* Create hard link to "g19/g1/ group */
- if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g1" )!=0) goto out;
+ if (check_name( name, "/g19/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g19/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g19/g2" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g2" )!=0) goto out;
+ if (check_name( name, "/g19/g2" )!=0) TEST_ERROR;
/* Rename original group */
- if (H5Gmove( file_id, "/g19/g1", "/g19/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g19/g1", "/g19/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g3" )!=0) goto out;
+ if (check_name( name, "/g19/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g2" )!=0) goto out;
+ if (check_name( name, "/g19/g2" )!=0) TEST_ERROR;
/* Rename original group back, using relative path */
- if (H5Gmove( group_id, "g3", "g1" )<0) goto out;
+ if (H5Gmove( group_id, "g3", "g1" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g1" )!=0) goto out;
+ if (check_name( name, "/g19/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g2" )!=0) goto out;
+ if (check_name( name, "/g19/g2" )!=0) TEST_ERROR;
/* Create another hard link to "/g19/g1" group */
- if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g3")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g3")<0) TEST_ERROR;
/* Open the group */
- if ((group4_id = H5Gopen( file_id, "/g19/g3" ))<0) goto out;
+ if ((group4_id = H5Gopen( file_id, "/g19/g3" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g3" )!=0) goto out;
+ if (check_name( name, "/g19/g3" )!=0) TEST_ERROR;
/* Delete group */
- if (H5Gunlink( file_id, "/g19/g3")<0) goto out;
+ if (H5Gunlink( file_id, "/g19/g3")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g1" )!=0) goto out;
+ if (check_name( name, "/g19/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g2" )!=0) goto out;
+ if (check_name( name, "/g19/g2" )!=0) TEST_ERROR;
/* Close the unlinked group */
H5Gclose( group4_id );
/* Create another hard link to "/g19/g1" group */
- if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g3")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_HARD, "/g19/g1", "/g19/g3")<0) TEST_ERROR;
/* Open the group */
- if ((group4_id = H5Gopen( file_id, "/g19/g3" ))<0) goto out;
+ if ((group4_id = H5Gopen( file_id, "/g19/g3" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g3" )!=0) goto out;
+ if (check_name( name, "/g19/g3" )!=0) TEST_ERROR;
/* Delete group, using relative path */
- if (H5Gunlink( group_id, "g3")<0) goto out;
+ if (H5Gunlink( group_id, "g3")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g1" )!=0) goto out;
+ if (check_name( name, "/g19/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g19/g2" )!=0) goto out;
+ if (check_name( name, "/g19/g2" )!=0) TEST_ERROR;
/* Close the unlinked group */
H5Gclose( group4_id );
@@ -1923,26 +1923,26 @@ PASSED();
TESTING("H5Iget_name with H5Glink symbolic");
/* Create group "g20/g1" */
- if ((group_id = H5Gcreate( file_id, "/g20", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g20/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g20", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g20/g1", 0 ))<0) TEST_ERROR;
/* Create symbolic link to "g20/g1/ group */
- if (H5Glink(file_id, H5G_LINK_SOFT, "/g20/g1", "/g20/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_SOFT, "/g20/g1", "/g20/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g20/g1" )!=0) goto out;
+ if (check_name( name, "/g20/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g20/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g20/g2" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g20/g2" )!=0) goto out;
+ if (check_name( name, "/g20/g2" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -1960,35 +1960,35 @@ PASSED();
TESTING("H5Iget_name with H5Glink symbolic and move target");
/* Create group "g21/g1" */
- if ((group_id = H5Gcreate( file_id, "/g21", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g21/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g21", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g21/g1", 0 ))<0) TEST_ERROR;
/* Create symbolic link to "g21/g1/ group */
- if (H5Glink(file_id, H5G_LINK_SOFT, "/g21/g1", "/g21/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_SOFT, "/g21/g1", "/g21/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g21/g1" )!=0) goto out;
+ if (check_name( name, "/g21/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g21/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g21/g2" ))<0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( file_id, "/g21/g1", "/g21/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g21/g1", "/g21/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g21/g3" )!=0) goto out;
+ if (check_name( name, "/g21/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g21/g2" )!=0) goto out;
+ if (check_name( name, "/g21/g2" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2006,50 +2006,50 @@ PASSED();
TESTING("H5Iget_name with H5Glink symbolic and move source");
/* Create group "g22/g1" */
- if ((group_id = H5Gcreate( file_id, "/g22", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g22/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g22", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g22/g1", 0 ))<0) TEST_ERROR;
/* Create symbolic link to "g22/g1/ group */
- if (H5Glink(file_id, H5G_LINK_SOFT, "/g22/g1", "/g22/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_SOFT, "/g22/g1", "/g22/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g22/g1" )!=0) goto out;
+ if (check_name( name, "/g22/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g22/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g22/g2" ))<0) TEST_ERROR;
/* Rename soft link */
- if (H5Gmove( file_id, "/g22/g2", "/g22/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g22/g2", "/g22/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g22/g1" )!=0) goto out;
+ if (check_name( name, "/g22/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g22/g3" )!=0) goto out;
+ if (check_name( name, "/g22/g3" )!=0) TEST_ERROR;
/* Rename soft link, using relative paths */
- if (H5Gmove( group_id, "g3", "g2" )<0) goto out;
+ if (H5Gmove( group_id, "g3", "g2" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g22/g1" )!=0) goto out;
+ if (check_name( name, "/g22/g1" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g22/g2" )!=0) goto out;
+ if (check_name( name, "/g22/g2" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2068,29 +2068,29 @@ PASSED();
TESTING("H5Iget_name with H5Glink symbolic and unlink target");
/* Create group "g23/g1" */
- if ((group_id = H5Gcreate( file_id, "/g23", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g23/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g23", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g23/g1", 0 ))<0) TEST_ERROR;
/* Create symbolic link to "g23/g1/ group */
- if (H5Glink(file_id, H5G_LINK_SOFT, "/g23/g1", "/g23/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_SOFT, "/g23/g1", "/g23/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g23/g1" )!=0) goto out;
+ if (check_name( name, "/g23/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g23/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g23/g2" ))<0) TEST_ERROR;
/* Delete group */
- if (H5Gunlink( file_id, "/g23/g1")<0) goto out;
+ if (H5Gunlink( file_id, "/g23/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g23/g2" )!=0) goto out;
+ if (check_name( name, "/g23/g2" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2107,29 +2107,29 @@ PASSED();
TESTING("H5Iget_name with H5Glink symbolic and unlink source");
/* Create group "g24/g1" */
- if ((group_id = H5Gcreate( file_id, "/g24", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g24/g1", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g24", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g24/g1", 0 ))<0) TEST_ERROR;
/* Create symbolic link to "g24/g1/ group */
- if (H5Glink(file_id, H5G_LINK_SOFT, "/g24/g1", "/g24/g2")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_SOFT, "/g24/g1", "/g24/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g24/g1" )!=0) goto out;
+ if (check_name( name, "/g24/g1" )!=0) TEST_ERROR;
/* Open the group */
- if ((group3_id = H5Gopen( file_id, "/g24/g2" ))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g24/g2" ))<0) TEST_ERROR;
/* Delete group */
- if (H5Gunlink( file_id, "/g24/g2")<0) goto out;
+ if (H5Gunlink( file_id, "/g24/g2")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2146,9 +2146,9 @@ PASSED();
TESTING("H5Iget_name with several nested mounted files");
/* Create a group "g25/g1/g2" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g25", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g25/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g25/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g25", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g25/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g25/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2158,9 +2158,9 @@ PASSED();
/* Create second file and group "/g26/g3/g4" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g26", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g26/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g26/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g26", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g26/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g26/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2170,9 +2170,9 @@ PASSED();
/* Create third file and group "/g27/g5/g6" in it */
file2_id = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file2_id, "/g27", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file2_id, "/g27/g5", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g27/g5/g6", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file2_id, "/g27", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file2_id, "/g27/g5", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g27/g5/g6", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2182,9 +2182,9 @@ PASSED();
/* Create fourth file and group "/g28/g5/g6" in it */
file3_id = H5Fcreate(filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file3_id, "/g28", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file3_id, "/g28/g7", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file3_id, "/g28/g7/g8", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file3_id, "/g28", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file3_id, "/g28/g7", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file3_id, "/g28/g7/g8", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2192,135 +2192,135 @@ PASSED();
H5Gclose( group3_id );
/* Access group which will be hidden in the first file */
- if ((group_id = H5Gopen( file_id, "/g25/g1/g2"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g25/g1/g2"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g2" )!=0) TEST_ERROR;
/* Mount second file under "/g25/g1" in the first file */
- if (H5Fmount(file_id, "/g25/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g25/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group which will be hidden in the second file */
- if ((group2_id = H5Gopen( file_id, "/g25/g1/g26/g3/g4"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g25/g1/g26/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g26/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g26/g3/g4" )!=0) TEST_ERROR;
/* Mount third file under "/g25/g1/g26/g3" in the first file */
- if (H5Fmount(file_id, "/g25/g1/g26/g3", file2_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g25/g1/g26/g3", file2_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group in the third file */
- if ((group3_id = H5Gopen( file_id, "/g25/g1/g26/g3/g27/g5/g6"))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g25/g1/g26/g3/g27/g5/g6"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g26/g3/g27/g5/g6" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g26/g3/g27/g5/g6" )!=0) TEST_ERROR;
/* Mount fourth file under "/g25/g1/g26/g3/g27/g5" in the first file */
- if (H5Fmount(file_id, "/g25/g1/g26/g3/g27/g5", file3_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g25/g1/g26/g3/g27/g5", file3_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group in the fourth file */
- if ((group4_id = H5Gopen( file_id, "/g25/g1/g26/g3/g27/g5/g28/g7/g8"))<0) goto out;
+ if ((group4_id = H5Gopen( file_id, "/g25/g1/g26/g3/g27/g5/g28/g7/g8"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g26/g3/g27/g5/g28/g7/g8" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g26/g3/g27/g5/g28/g7/g8" )!=0) TEST_ERROR;
- if (H5Funmount(file_id, "/g25/g1/g26/g3/g27/g5")<0) goto out;
+ if (H5Funmount(file_id, "/g25/g1/g26/g3/g27/g5")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g26/g3/g27/g5/g6" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g26/g3/g27/g5/g6" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group4_id );
H5Fclose( file3_id );
- if (H5Funmount(file_id, "/g25/g1/g26/g3")<0) goto out;
+ if (H5Funmount(file_id, "/g25/g1/g26/g3")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g26/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g26/g3/g4" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group3_id );
H5Fclose( file2_id );
- if (H5Funmount(file_id, "/g25/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g25/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g25/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g25/g1/g2" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2339,50 +2339,50 @@ PASSED();
TESTING("H5Iget_name and H5Gmove with repeated path components");
/* Create a group "g29/g1/g2/g1/g2" in a file */
- if ((group_id = H5Gcreate( file_id, "/g29", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g29/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g29/g1/g2", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file_id, "/g29/g1/g2/g1", 0 ))<0) goto out;
- if ((group5_id = H5Gcreate( file_id, "/g29/g1/g2/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g29", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g29/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g29/g1/g2", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file_id, "/g29/g1/g2/g1", 0 ))<0) TEST_ERROR;
+ if ((group5_id = H5Gcreate( file_id, "/g29/g1/g2/g1/g2", 0 ))<0) TEST_ERROR;
/* Rename group */
- if (H5Gmove( file_id, "/g29/g1/g2/g1/g2", "/g29/g1/g2/g1/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g29/g1/g2/g1/g2", "/g29/g1/g2/g1/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )< 0) goto out;
+ if (H5Iget_name( group5_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g29/g1/g2/g1/g3" )!=0) goto out;
+ if (check_name( name, "/g29/g1/g2/g1/g3" )!=0) TEST_ERROR;
/* Rename group in middle of path, keeping within the same group */
- if (H5Gmove( file_id, "/g29/g1/g2/g1", "/g29/g1/g2/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g29/g1/g2/g1", "/g29/g1/g2/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g29/g1/g2/g3" )!=0) goto out;
+ if (check_name( name, "/g29/g1/g2/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )< 0) goto out;
+ if (H5Iget_name( group5_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g29/g1/g2/g3/g3" )!=0) goto out;
+ if (check_name( name, "/g29/g1/g2/g3/g3" )!=0) TEST_ERROR;
/* Rename group in middle of path, moving to another group in file */
- if (H5Gmove( file_id, "/g29/g1/g2/g3", "/g29/g3" )<0) goto out;
+ if (H5Gmove( file_id, "/g29/g1/g2/g3", "/g29/g3" )<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g29/g3" )!=0) goto out;
+ if (check_name( name, "/g29/g3" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )< 0) goto out;
+ if (H5Iget_name( group5_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g29/g3/g3" )!=0) goto out;
+ if (check_name( name, "/g29/g3/g3" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2402,9 +2402,9 @@ PASSED();
TESTING("H5Iget_name with higher mounted file");
/* Create a group "/g30/g1/g2" in the first file */
- if ((group_id = H5Gcreate( file_id, "/g30", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g30/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g30/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g30", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g30/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g30/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2414,9 +2414,9 @@ PASSED();
/* Create second file and group "/g31/g3/g4" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g31", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g31/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g31/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g31", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g31/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g31/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2426,9 +2426,9 @@ PASSED();
/* Create third file and group "/g32/g5/g6" in it */
file2_id = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file2_id, "/g32", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file2_id, "/g32/g5", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g32/g5/g6", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file2_id, "/g32", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file2_id, "/g32/g5", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g32/g5/g6", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2438,9 +2438,9 @@ PASSED();
/* Create fourth file and group "/g33/g5/g6" in it */
file3_id = H5Fcreate(filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file3_id, "/g33", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file3_id, "/g33/g7", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file3_id, "/g33/g7/g8", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file3_id, "/g33", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file3_id, "/g33/g7", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file3_id, "/g33/g7/g8", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2448,148 +2448,148 @@ PASSED();
H5Gclose( group3_id );
/* Access group which will be hidden in the first file */
- if ((group_id = H5Gopen( file_id, "/g30/g1/g2"))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g30/g1/g2"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g2" )!=0) TEST_ERROR;
/* Mount second file under "/g30/g1" in the first file */
- if (H5Fmount(file_id, "/g30/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g30/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group which will be hidden in the second file */
- if ((group2_id = H5Gopen( file_id, "/g30/g1/g31/g3/g4"))<0) goto out;
+ if ((group2_id = H5Gopen( file_id, "/g30/g1/g31/g3/g4"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g31/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g31/g3/g4" )!=0) TEST_ERROR;
/* Mount third file under "/g30/g1/g31/g3" in the first file */
- if (H5Fmount(file_id, "/g30/g1/g31/g3", file2_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g30/g1/g31/g3", file2_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group which will be hidden in the third file */
- if ((group3_id = H5Gopen( file_id, "/g30/g1/g31/g3/g32/g5/g6"))<0) goto out;
+ if ((group3_id = H5Gopen( file_id, "/g30/g1/g31/g3/g32/g5/g6"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g31/g3/g32/g5/g6" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g31/g3/g32/g5/g6" )!=0) TEST_ERROR;
/* Mount fourth file under "/g30" in the first file, hiding the files below it */
- if (H5Fmount(file_id, "/g30", file3_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g30", file3_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Access group which will be in the fourth file */
- if ((group4_id = H5Gopen( file_id, "/g30/g33/g7/g8"))<0) goto out;
+ if ((group4_id = H5Gopen( file_id, "/g30/g33/g7/g8"))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g33/g7/g8" )!=0) goto out;
+ if (check_name( name, "/g30/g33/g7/g8" )!=0) TEST_ERROR;
/* Unmount fourth file */
- if (H5Funmount(file_id, "/g30")<0) goto out;
+ if (H5Funmount(file_id, "/g30")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g31/g3/g32/g5/g6" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g31/g3/g32/g5/g6" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Unmount third file */
- if (H5Funmount(file_id, "/g30/g1/g31/g3")<0) goto out;
+ if (H5Funmount(file_id, "/g30/g1/g31/g3")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g31/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g31/g3/g4" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Unmount second file */
- if (H5Funmount(file_id, "/g30/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g30/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )< 0) goto out;
+ if (H5Iget_name( group4_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )< 0) goto out;
+ if (H5Iget_name( group3_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )< 0) goto out;
+ if (H5Iget_name( group2_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )< 0) goto out;
+ if (H5Iget_name( group_id, name, size )< 0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g30/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g30/g1/g2" )!=0) TEST_ERROR;
/* Close groups */
H5Gclose( group_id );
@@ -2615,9 +2615,9 @@ PASSED();
/* Create second file and group "/g35/g3/g4" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g35", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g35/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g35/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g35", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g35/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g35/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2625,57 +2625,57 @@ PASSED();
H5Gclose( group3_id );
/* Create group "/g34/g1/g2" in first file */
- if ((group_id = H5Gcreate( file_id, "/g34", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g34/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g34/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g34", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g34/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g34/g1/g2", 0 ))<0) TEST_ERROR;
/* Create hard link to "/g34/g1/g2 group */
- if (H5Glink(file_id, H5G_LINK_HARD, "/g34/g1/g2", "/g34/g2a")<0) goto out;
+ if (H5Glink(file_id, H5G_LINK_HARD, "/g34/g1/g2", "/g34/g2a")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g34/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g34/g1/g2" )!=0) TEST_ERROR;
/* Open the link to the group */
- if ((group4_id = H5Gopen( file_id, "/g34/g2a" ))<0) goto out;
+ if ((group4_id = H5Gopen( file_id, "/g34/g2a" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g34/g2a" )!=0) goto out;
+ if (check_name( name, "/g34/g2a" )!=0) TEST_ERROR;
/* Mount second file under "/g34/g1" in the first file */
- if (H5Fmount(file_id, "/g34/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g34/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g34/g2a" )!=0) goto out;
+ if (check_name( name, "/g34/g2a" )!=0) TEST_ERROR;
/* Unmount second file */
- if (H5Funmount(file_id, "/g34/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g34/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g34/g1/g2" )!=0) goto out;
+ if (check_name( name, "/g34/g1/g2" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g34/g2a" )!=0) goto out;
+ if (check_name( name, "/g34/g2a" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2696,9 +2696,9 @@ PASSED();
TESTING("H5Iget_name with mounted files and unlinking");
/* Create group "/g36/g1/g2" in first file */
- if ((group_id = H5Gcreate( file_id, "/g36", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file_id, "/g36/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file_id, "/g36/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file_id, "/g36", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file_id, "/g36/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file_id, "/g36/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2708,92 +2708,92 @@ PASSED();
/* Create second file and group "/g37/g4" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g37", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g37/g4", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g37/g4/g5a", 0 ))<0) goto out;
- if ((group4_id = H5Gcreate( file1_id, "/g37/g4/g5b", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g37", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g37/g4", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g37/g4/g5a", 0 ))<0) TEST_ERROR;
+ if ((group4_id = H5Gcreate( file1_id, "/g37/g4/g5b", 0 ))<0) TEST_ERROR;
/* Mount second file under "/g36/g1" in the first file */
- if (H5Fmount(file_id, "/g36/g1", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file_id, "/g36/g1", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
/* Open group in mounted file */
- if ((group5_id = H5Gopen( file_id, "/g36/g1/g37/" ))<0) goto out;
+ if ((group5_id = H5Gopen( file_id, "/g36/g1/g37/" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group5_id, name, size )<0) goto out;
+ if (H5Iget_name( group5_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g36/g1/g37" )!=0) goto out;
+ if (check_name( name, "/g36/g1/g37" )!=0) TEST_ERROR;
/* Open group to delete in mounted file */
- if ((group6_id = H5Gopen( file_id, "/g36/g1/g37/g4/g5a" ))<0) goto out;
+ if ((group6_id = H5Gopen( file_id, "/g36/g1/g37/g4/g5a" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g36/g1/g37/g4/g5a" )!=0) goto out;
+ if (check_name( name, "/g36/g1/g37/g4/g5a" )!=0) TEST_ERROR;
/* Delete end group in mounted file, using relative paths */
- if (H5Gunlink( group5_id, "g4/g5a")<0) goto out;
+ if (H5Gunlink( group5_id, "g4/g5a")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group3_id, name, size )<0) goto out;
+ if (H5Iget_name( group3_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close deleted group */
H5Gclose( group6_id );
/* Open groups to delete in mounted file */
- if ((group6_id = H5Gopen( file_id, "/g36/g1/g37/g4" ))<0) goto out;
- if ((group7_id = H5Gopen( file_id, "/g36/g1/g37/g4/g5b" ))<0) goto out;
+ if ((group6_id = H5Gopen( file_id, "/g36/g1/g37/g4" ))<0) TEST_ERROR;
+ if ((group7_id = H5Gopen( file_id, "/g36/g1/g37/g4/g5b" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g36/g1/g37/g4" )!=0) goto out;
+ if (check_name( name, "/g36/g1/g37/g4" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group7_id, name, size )<0) goto out;
+ if (H5Iget_name( group7_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g36/g1/g37/g4/g5b" )!=0) goto out;
+ if (check_name( name, "/g36/g1/g37/g4/g5b" )!=0) TEST_ERROR;
/* Delete middle group in mounted file, using relative paths */
- if (H5Gunlink( group5_id, "g4")<0) goto out;
+ if (H5Gunlink( group5_id, "g4")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group6_id, name, size )<0) goto out;
+ if (H5Iget_name( group6_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group7_id, name, size )<0) goto out;
+ if (H5Iget_name( group7_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group4_id, name, size )<0) goto out;
+ if (H5Iget_name( group4_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close deleted groups */
H5Gclose( group6_id );
@@ -2802,7 +2802,7 @@ PASSED();
/* Close group in mounted file */
H5Gclose( group5_id );
- if (H5Funmount(file_id, "/g36/g1")<0) goto out;
+ if (H5Funmount(file_id, "/g36/g1")<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2825,9 +2825,9 @@ PASSED();
/* Create file and group "/g38/g1/g2" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g38", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g38/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g38/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g38", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g38/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g38/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2837,9 +2837,9 @@ PASSED();
/* Create second file and group "/g39/g1/g2" in it */
file2_id = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file2_id, "/g39", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file2_id, "/g39/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g39/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file2_id, "/g39", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file2_id, "/g39/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g39/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2849,9 +2849,9 @@ PASSED();
/* Create third file and group "/g40/g5/g6" in it */
file3_id = H5Fcreate(filename3, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file3_id, "/g40", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file3_id, "/g40/g5", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file3_id, "/g40/g5/g6", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file3_id, "/g40", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file3_id, "/g40/g5", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file3_id, "/g40/g5/g6", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2859,56 +2859,56 @@ PASSED();
H5Gclose( group3_id );
/* Mount second file under "/g38/g1" in the first file */
- if (H5Fmount(file1_id, "/g38/g1", file2_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file1_id, "/g38/g1", file2_id, H5P_DEFAULT)<0) TEST_ERROR;
- if ((group_id = H5Gopen( file1_id, "/g38/g1/g39/g3/g4" ))<0) goto out;
+ if ((group_id = H5Gopen( file1_id, "/g38/g1/g39/g3/g4" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) TEST_ERROR;
/* Mount first file under "/g40/g5" in the third file */
- if (H5Fmount(file3_id, "/g40/g5", file1_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file3_id, "/g40/g5", file1_id, H5P_DEFAULT)<0) TEST_ERROR;
- if ((group2_id = H5Gopen( file3_id, "/g40/g5/g38/g1/g39/g3/g4" ))<0) goto out;
+ if ((group2_id = H5Gopen( file3_id, "/g40/g5/g38/g1/g39/g3/g4" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g40/g5/g38/g1/g39/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g40/g5/g38/g1/g39/g3/g4" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) TEST_ERROR;
/* Unmount first file */
- if (H5Funmount(file3_id, "/g40/g5")<0) goto out;
+ if (H5Funmount(file3_id, "/g40/g5")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) goto out;
+ if (check_name( name, "/g38/g1/g39/g3/g4" )!=0) TEST_ERROR;
/* Unmount second file */
- if (H5Funmount(file1_id, "/g38/g1")<0) goto out;
+ if (H5Funmount(file1_id, "/g38/g1")<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2929,9 +2929,9 @@ PASSED();
/* Create file and group "/g39/g1/g2" in it */
file1_id = H5Fcreate(filename1, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file1_id, "/g41", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file1_id, "/g41/g1", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file1_id, "/g41/g1/g2", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file1_id, "/g41", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file1_id, "/g41/g1", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file1_id, "/g41/g1/g2", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2941,9 +2941,9 @@ PASSED();
/* Create second file and group "/g42/g1/g2" in it */
file2_id = H5Fcreate(filename2, H5F_ACC_TRUNC, H5P_DEFAULT, fapl);
- if ((group_id = H5Gcreate( file2_id, "/g42", 0 ))<0) goto out;
- if ((group2_id = H5Gcreate( file2_id, "/g42/g3", 0 ))<0) goto out;
- if ((group3_id = H5Gcreate( file2_id, "/g42/g3/g4", 0 ))<0) goto out;
+ if ((group_id = H5Gcreate( file2_id, "/g42", 0 ))<0) TEST_ERROR;
+ if ((group2_id = H5Gcreate( file2_id, "/g42/g3", 0 ))<0) TEST_ERROR;
+ if ((group3_id = H5Gcreate( file2_id, "/g42/g3/g4", 0 ))<0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2951,26 +2951,26 @@ PASSED();
H5Gclose( group3_id );
/* Mount second file under "/g41/g1" in the first file */
- if (H5Fmount(file1_id, "/g41/g1", file2_id, H5P_DEFAULT)<0) goto out;
+ if (H5Fmount(file1_id, "/g41/g1", file2_id, H5P_DEFAULT)<0) TEST_ERROR;
- if ((group_id = H5Gopen( file1_id, "/g41/g1/g42/g3" ))<0) goto out;
+ if ((group_id = H5Gopen( file1_id, "/g41/g1/g42/g3" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group_id, name, size )<0) goto out;
+ if (H5Iget_name( group_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "/g41/g1/g42/g3" )!=0) goto out;
+ if (check_name( name, "/g41/g1/g42/g3" )!=0) TEST_ERROR;
/* Unmount file */
- if (H5Funmount(file1_id, "/g41/g1")<0) goto out;
+ if (H5Funmount(file1_id, "/g41/g1")<0) TEST_ERROR;
- if ((group2_id = H5Gopen( group_id, "g4" ))<0) goto out;
+ if ((group2_id = H5Gopen( group_id, "g4" ))<0) TEST_ERROR;
/* Get name */
- if (H5Iget_name( group2_id, name, size )<0) goto out;
+ if (H5Iget_name( group2_id, name, size )<0) TEST_ERROR;
/* Verify */
- if (check_name( name, "" )!=0) goto out;
+ if (check_name( name, "" )!=0) TEST_ERROR;
/* Close */
H5Gclose( group_id );
@@ -2992,7 +2992,7 @@ PASSED();
h5_cleanup(FILENAME, fapl);
return 0;
-out:
+error:
H5Fclose( file_id );
H5_FAILED();
return 1;