summaryrefslogtreecommitdiffstats
path: root/c++/test/tfile.cpp
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-05-03 21:53:32 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-05-03 21:53:32 (GMT)
commit3db9c56f9ecee8849794ab1b2fdcd1f6bcad9f31 (patch)
tree402754f275fc834577a7668da65943b7592f9866 /c++/test/tfile.cpp
parent1f9410e11ee99534c9ca546f43e54f02c581c3d7 (diff)
downloadhdf5-3db9c56f9ecee8849794ab1b2fdcd1f6bcad9f31.zip
hdf5-3db9c56f9ecee8849794ab1b2fdcd1f6bcad9f31.tar.gz
hdf5-3db9c56f9ecee8849794ab1b2fdcd1f6bcad9f31.tar.bz2
[svn-r12326]
Purpose: Bug fix for VMS Description: I am not sure why I didn't see this bug before ;-O. H5_HAVE_FILE_VERSIONS macro was added (by me) to the wrong place causing test program to get creation property list from a non-existing file object. As a result test program failed with access violation error. Solution: Fixed. Platforms tested: VMS server and copper (just in case) Misc. update:
Diffstat (limited to 'c++/test/tfile.cpp')
-rw-r--r--c++/test/tfile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 3b197f2..7d28580 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -135,10 +135,10 @@ 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);
+#ifndef H5_HAVE_FILE_VERSIONS
// Try to truncate first file again. This should fail because file1
// is the same file and is currently open.
try {