diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-05-06 19:38:35 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2003-05-06 19:38:35 (GMT) |
commit | ba8fd7feb2150b38ed4c57eda650c3d656297f00 (patch) | |
tree | a9d7b073ad38d6590eea25b095a21656d5053de0 /test | |
parent | d30d2ba5b96baa7ee6c61652d6ce734f4979fbe6 (diff) | |
download | hdf5-ba8fd7feb2150b38ed4c57eda650c3d656297f00.zip hdf5-ba8fd7feb2150b38ed4c57eda650c3d656297f00.tar.gz hdf5-ba8fd7feb2150b38ed4c57eda650c3d656297f00.tar.bz2 |
[svn-r6808] Purpose:
code warrior fix
Description:
eliminate the CW failure on getname.c
restrict the H5_NO_FILE_SHARING just to the test file_close of testhdf5 test
Solution:
the CW failure on getname.c can be eliminated if a unmount of the file is made before closing it
on tfile.c the failure is due to the file sharing flag of CW, and the test is maintained as before
Platforms tested:
Windows 2000 (octopus)
Linux 2.4 (rockaway)
SunOS 5.7 (arabica)
IRIX 6.5 (modi4)
Misc. update:
Diffstat (limited to 'test')
-rw-r--r-- | test/getname.c | 23 | ||||
-rw-r--r-- | test/tfile.c | 2 |
2 files changed, 15 insertions, 10 deletions
diff --git a/test/getname.c b/test/getname.c index 4c07d49..d049419 100644 --- a/test/getname.c +++ b/test/getname.c @@ -21,7 +21,8 @@ #include "hdf5.h" #include "h5test.h" - + + /* Compound datatype */ typedef struct s1_t { unsigned int a; @@ -55,10 +56,10 @@ static int check_name( char *name, const char* check ) int main( void ) { - char filename0[1024]; - char filename1[1024]; - char filename2[1024]; - char filename3[1024]; + char filename0[1024]; + char filename1[1024]; + char filename2[1024]; + char filename3[1024]; hid_t fapl; hid_t file_id, file1_id, file2_id, file3_id; hid_t group_id, group2_id, group3_id, group4_id, group5_id, group6_id, group7_id; @@ -825,6 +826,8 @@ int main( void ) /* Verify */ if (check_name( name, "/g12/d" )!=0) goto out; + + if (H5Funmount(file_id, "/g12")<0) goto out; /* Close */ H5Dclose( dataset_id ); @@ -834,6 +837,7 @@ int main( void ) PASSED(); + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Fmount; long name *------------------------------------------------------------------------- @@ -1712,8 +1716,7 @@ int main( void ) H5Fclose( file2_id ); PASSED(); - - + /*------------------------------------------------------------------------- * Test H5Iget_name with H5Glink hard *------------------------------------------------------------------------- @@ -2076,7 +2079,6 @@ int main( void ) H5Gclose( group3_id ); PASSED(); - /*------------------------------------------------------------------------- * Test H5Iget_name with several nested mounted files @@ -2742,6 +2744,8 @@ int main( void ) /* Close group in mounted file */ H5Gclose( group5_id ); + if (H5Funmount(file_id, "/g36/g1")<0) goto out; + /* Close */ H5Gclose( group_id ); H5Gclose( group2_id ); @@ -2754,7 +2758,7 @@ int main( void ) /*------------------------------------------------------------------------- - * Test H5Iget_name with mounting already mounted file + * Test H5Iget_name with mounting already mounted files *------------------------------------------------------------------------- */ @@ -2857,7 +2861,6 @@ int main( void ) PASSED(); - /*------------------------------------------------------------------------- * end tests *------------------------------------------------------------------------- diff --git a/test/tfile.c b/test/tfile.c index cac159a..d9cd9bf 100644 --- a/test/tfile.c +++ b/test/tfile.c @@ -920,7 +920,9 @@ test_file(void) test_file_create(); /* Test file creation(also creation templates)*/ test_file_open(); /* Test file opening */ +#ifndef H5_NO_SHARED_WRITING test_file_close(); /* Test file close behavior */ +#endif /* H5_NO_SHARED_WRITING */ } /* test_file() */ |