diff options
Diffstat (limited to 'test/getname.c')
-rw-r--r-- | test/getname.c | 51 |
1 files changed, 48 insertions, 3 deletions
diff --git a/test/getname.c b/test/getname.c index d17c4fb..83de4d2 100644 --- a/test/getname.c +++ b/test/getname.c @@ -61,14 +61,36 @@ int main( void ) H5P_DEFAULT ))<0) goto out; +/*------------------------------------------------------------------------- + * Test H5Iget_name with H5Gcreate, one group + *------------------------------------------------------------------------- + */ + + 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; + + /* Get name */ + if (H5Iget_name( group_id, name, size )<0) goto out; + + /* Verify */ + if (check_name( name, "/g0" )!=0) + goto out; + + /* Close */ + H5Gclose( group_id ); + + PASSED(); + /*------------------------------------------------------------------------- - * Test H5Iget_name with H5Gcreate + * Test H5Iget_name with H5Gcreate, more than one group *------------------------------------------------------------------------- */ - TESTING("H5Iget_name with H5Gcreate"); + 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; @@ -96,6 +118,7 @@ int main( void ) PASSED(); + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Gopen *------------------------------------------------------------------------- @@ -130,6 +153,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Dcreate *------------------------------------------------------------------------- @@ -175,6 +200,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Dopen *------------------------------------------------------------------------- @@ -216,6 +243,7 @@ int main( void ) PASSED(); + /*------------------------------------------------------------------------- * Test H5Iget_name with a long path *------------------------------------------------------------------------- @@ -309,6 +337,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Gmove and H5Gopen *------------------------------------------------------------------------- @@ -338,6 +368,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Gmove and H5Dopen *------------------------------------------------------------------------- @@ -364,6 +396,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Gmove and H5Topen *------------------------------------------------------------------------- @@ -429,6 +463,7 @@ int main( void ) PASSED(); + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Gmove and a long path *------------------------------------------------------------------------- @@ -809,6 +844,9 @@ int main( void ) PASSED(); + + + /*------------------------------------------------------------------------- * Test H5Iget_name with a defined type dataset *------------------------------------------------------------------------- @@ -877,6 +915,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with different files, test1 *------------------------------------------------------------------------- @@ -1305,6 +1345,8 @@ int main( void ) PASSED(); + + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Glink hard @@ -1346,6 +1388,7 @@ int main( void ) PASSED(); + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Glink symbolic *------------------------------------------------------------------------- @@ -1385,6 +1428,8 @@ int main( void ) PASSED(); +#if 1 + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Glink symbolic and move target @@ -1577,7 +1622,7 @@ int main( void ) *------------------------------------------------------------------------- */ - +#endif /* Close file */ H5Fclose( file_id ); |