From b36c5db865bcb7c63d7d0bd39524297418cfa913 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Mon, 3 Jan 2005 11:04:23 -0500 Subject: [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) --- c++/test/tfile.cpp | 4 ++-- 1 file 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 -- cgit v0.12