summaryrefslogtreecommitdiffstats
path: root/c++
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-10-09 03:52:46 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-10-09 03:52:46 (GMT)
commit261bbe39aac2cf13e2cd539520c3329e1df6d452 (patch)
tree0fcbcd9c19ae366fe6ac7e0216f5f753fd46117e /c++
parent37aaef8fe09017234e163bc78f617d0676ca2072 (diff)
downloadhdf5-261bbe39aac2cf13e2cd539520c3329e1df6d452.zip
hdf5-261bbe39aac2cf13e2cd539520c3329e1df6d452.tar.gz
hdf5-261bbe39aac2cf13e2cd539520c3329e1df6d452.tar.bz2
[svn-r15826] Description:
Bring revision 15825 from trunk: Fix various problems with a the core & sec2 VFDs. Improve the h5_get_file_size() routine to handle files created with VFDs that use multiple files. Tested on: FreeBSD/32 6.3 (duty) Already tested on other machine, in trunk.
Diffstat (limited to 'c++')
-rw-r--r--c++/test/tattr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index 11f7303..73b5a91 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -1043,9 +1043,9 @@ static void test_attr_dtype_shared()
// Get size of file
h5_stat_size_t empty_filesize; // Size of empty file
- empty_filesize = h5_get_file_size(FILENAME.c_str());
+ empty_filesize = h5_get_file_size(FILENAME.c_str(), H5P_DEFAULT);
if (empty_filesize < 0)
- TestErrPrintf("Line %d: file size wrong!\n",__LINE__);
+ TestErrPrintf("Line %d: file size wrong!\n", __LINE__);
// Open the file again
fid1.openFile(FILENAME, H5F_ACC_RDWR);
@@ -1162,7 +1162,7 @@ static void test_attr_dtype_shared()
fid1.close();
// Check size of file
- filesize=h5_get_file_size(FILENAME.c_str());
+ filesize = h5_get_file_size(FILENAME.c_str(), H5P_DEFAULT);
verify_val((long)filesize, (long)empty_filesize, "Checking file size", __LINE__, __FILE__);
PASSED();