summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-01-03 16:04:23 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-01-03 16:04:23 (GMT)
commitb36c5db865bcb7c63d7d0bd39524297418cfa913 (patch)
treea01588182af32bde316ae7bfb856a4438972f9ce /c++
parent7fae6be03c428a29bdeb9586663a3193e2268bf5 (diff)
downloadhdf5-b36c5db865bcb7c63d7d0bd39524297418cfa913.zip
hdf5-b36c5db865bcb7c63d7d0bd39524297418cfa913.tar.gz
hdf5-b36c5db865bcb7c63d7d0bd39524297418cfa913.tar.bz2
[svn-r9737] Purpose: Clean up tests
Description: Corrected a misuse of a variable causing access violation. Platforms tested: SunOS 5.7 (arabica) Linux 2.4 (eirene)
Diffstat (limited to 'c++')
-rw-r--r--c++/test/tfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 9e3322f..52cc840 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -117,8 +117,8 @@ test_file_create(void)
* exists from the previous steps.
*/
try {
- file1 = new H5File( FILE1, H5F_ACC_EXCL ); // should throw E
- verify_val(file1->getId(), FAIL, "H5File constructor", __LINE__, __FILE__);
+ H5File file2(FILE1, H5F_ACC_EXCL); // should throw E
+ verify_val(file2.getId(), FAIL, "H5File constructor", __LINE__, __FILE__);
}
catch( FileIException E ) {} // do nothing, FAIL expected