From 3db9c56f9ecee8849794ab1b2fdcd1f6bcad9f31 Mon Sep 17 00:00:00 2001 From: Elena Pourmal Date: Wed, 3 May 2006 16:53:32 -0500 Subject: [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: --- c++/test/tfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v0.12