summaryrefslogtreecommitdiffstats
path: root/c++/test/tfile.cpp
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-04-14 21:39:46 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-04-14 21:39:46 (GMT)
commit11cf4bacb757be368697e0550a073aac4f6abe20 (patch)
tree031bf10cc2992ebaa086c5a96800346fde0c8153 /c++/test/tfile.cpp
parent3ee41cba2928a5cf580c267d744ca4a9e1fde689 (diff)
downloadhdf5-11cf4bacb757be368697e0550a073aac4f6abe20.zip
hdf5-11cf4bacb757be368697e0550a073aac4f6abe20.tar.gz
hdf5-11cf4bacb757be368697e0550a073aac4f6abe20.tar.bz2
[svn-r12252] Purpose: Maintenance
Description: Brought VMS changes back (very minor): In tfile.cpp file some tests for open and creation should fail on UNIX, but this is not true on VMS since it has versioning of the files. In dsets.cpp std::count was used, but it is not available on VMS; also VMS didn't like "bogus" name for the filter function. Solution: Used H5_HAVE_FILE_VERSIONS and H5_VMS variables to control the tests; replaced "bogus" function with "filter_bogus" function Platforms tested: VMS server, heping Misc. update:
Diffstat (limited to 'c++/test/tfile.cpp')
-rw-r--r--c++/test/tfile.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index d68031a..3b197f2 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -111,6 +111,7 @@ test_file_create(void)
// try to create the same file with H5F_ACC_TRUNC. This should fail
// because file1 is the same file and is currently open.
+#ifndef H5_HAVE_FILE_VERSIONS
try {
H5File file2 (FILE1, H5F_ACC_TRUNC); // should throw E
@@ -119,7 +120,7 @@ test_file_create(void)
}
catch( FileIException E ) // catch truncating existing file
{} // do nothing, FAIL expected
-
+#endif
// Close file1
delete file1;
file1 = NULL;
@@ -134,7 +135,7 @@ test_file_create(void)
}
catch( FileIException E ) // catching creating existing file
{} // do nothing, FAIL expected
-
+#ifndef H5_HAVE_FILE_VERSIONS
// Test create with H5F_ACC_TRUNC. This will truncate the existing file.
file1 = new H5File (FILE1, H5F_ACC_TRUNC);
@@ -148,7 +149,7 @@ test_file_create(void)
}
catch( FileIException E ) // catching truncating opened file
{} // do nothing, FAIL expected
-
+#endif
// Try with H5F_ACC_EXCL. This should fail too because the file already
// exists.
try {