summaryrefslogtreecommitdiffstats
path: root/c++/test/tfile.cpp
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-07-07 18:05:37 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-07-07 18:05:37 (GMT)
commitfde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db (patch)
tree65f39dcc78ac34321b88d445657fae476e01d0c7 /c++/test/tfile.cpp
parentc949e7c391fe606bf8a680bbc41848d2cd7cc627 (diff)
downloadhdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.zip
hdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.tar.gz
hdf5-fde087cf57e94a2dbd1ae2a3c5b435c3b8c2c1db.tar.bz2
[svn-r8820] Purpose: Bug fix
Description: After changing H5Fget_filesize, forgot to update C++. Platforms tested: Tested for 1.6
Diffstat (limited to 'c++/test/tfile.cpp')
-rw-r--r--c++/test/tfile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 9dc6127..1ad2680 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -337,8 +337,9 @@ test_file_size(void)
H5File fid( FILE4, H5F_ACC_TRUNC, FileCreatPropList::DEFAULT, fapl);
// Get file size
- haddr_t file_size = fid.getFileSize();
- CHECK(file_size, FAIL, "H5File::getFileSize");
+ hsize_t file_size;
+ herr_t ret = fid.getFileSize(&file_size);
+ CHECK(ret, FAIL, "H5File::getFileSize");
// Check if file size is reasonable. It's supposed to be 2KB now.
if(file_size<1*KB || file_size>4*KB)