summaryrefslogtreecommitdiffstats
path: root/test/getname.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-05 22:04:14 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-05-05 22:04:14 (GMT)
commit1d06baa334bffeabf4aaa7ff7cccf73be514d7b1 (patch)
tree4ae563dec7665a57c142084801ab94edeb299118 /test/getname.c
parent117444cc2547ea3a4c7b8cb5042c4c186283edc5 (diff)
downloadhdf5-1d06baa334bffeabf4aaa7ff7cccf73be514d7b1.zip
hdf5-1d06baa334bffeabf4aaa7ff7cccf73be514d7b1.tar.gz
hdf5-1d06baa334bffeabf4aaa7ff7cccf73be514d7b1.tar.bz2
[svn-r6798] Purpose:
code warrior port Description: added a flag H5_NO_SHARED_WRITING, it is defined only for CW in the H5pubconf.h this avoids doing some tests for CW that fail on shared writing Solution: Platforms tested: windows (cw and ms) Linux 2.4 (rockaway) SunOS 5.7 (arabica) IRIX 6.5 (modi4) Misc. update:
Diffstat (limited to 'test/getname.c')
-rw-r--r--test/getname.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/getname.c b/test/getname.c
index 07cbff7..9817d9e 100644
--- a/test/getname.c
+++ b/test/getname.c
@@ -834,6 +834,7 @@ int main( void )
PASSED();
+#ifndef H5_NO_SHARED_WRITING
/*-------------------------------------------------------------------------
* Test H5Iget_name with H5Fmount; long name
@@ -1141,6 +1142,7 @@ int main( void )
PASSED();
+#endif /* H5_NO_SHARED_WRITING */
/*-------------------------------------------------------------------------
@@ -1314,7 +1316,7 @@ int main( void )
TESTING("H5Iget_name with a small buffer for name");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g15" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g17" ))<0) goto out;
/* Get name */
name_len=H5Iget_name( group_id, name2, size2 );
@@ -1324,7 +1326,7 @@ int main( void )
name_len=H5Iget_name( group_id, name, size );
/* Verify */
- if (check_name( name, "/g15" )!=0) goto out;
+ if (check_name( name, "/g17" )!=0) goto out;
/* Close */
H5Gclose( group_id );
@@ -1340,7 +1342,7 @@ int main( void )
TESTING("H5Iget_name with a dynamic buffer for name");
/* Reopen the group */
- if ((group_id = H5Gopen( file_id, "/g15" ))<0) goto out;
+ if ((group_id = H5Gopen( file_id, "/g17" ))<0) goto out;
/* Get name */
name_len=H5Iget_name( group_id, NULL, size );
@@ -1352,7 +1354,7 @@ int main( void )
if (H5Iget_name( group_id, name3, name_len+1 )<0) goto out;
/* Verify */
- if (check_name( name3, "/g15" )!=0)
+ if (check_name( name3, "/g17" )!=0)
goto out;
/* Get name */
@@ -1406,6 +1408,7 @@ int main( void )
PASSED();
+#ifndef H5_NO_SHARED_WRITING
/*-------------------------------------------------------------------------
* Test H5Iget_name with added names with mounting
@@ -1470,7 +1473,7 @@ int main( void )
PASSED();
-
+
/*-------------------------------------------------------------------------
* Test H5Iget_name with H5Fclose
@@ -1508,7 +1511,6 @@ int main( void )
PASSED();
-
/*-------------------------------------------------------------------------
* Test H5Iget_name with H5Fmount and H5Gunlink
*-------------------------------------------------------------------------
@@ -1719,6 +1721,7 @@ int main( void )
PASSED();
+#endif /* H5_NO_SHARED_WRITING */
/*-------------------------------------------------------------------------
@@ -2084,6 +2087,7 @@ int main( void )
PASSED();
+#ifndef H5_NO_SHARED_WRITING
/*-------------------------------------------------------------------------
* Test H5Iget_name with several nested mounted files
@@ -2864,6 +2868,7 @@ int main( void )
PASSED();
+#endif /* H5_NO_SHARED_WRITING */
/*-------------------------------------------------------------------------