summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--c++/test/tfile.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/c++/test/tfile.cpp b/c++/test/tfile.cpp
index 1ad2680..f5484eb 100644
--- a/c++/test/tfile.cpp
+++ b/c++/test/tfile.cpp
@@ -337,9 +337,7 @@ test_file_size(void)
H5File fid( FILE4, H5F_ACC_TRUNC, FileCreatPropList::DEFAULT, fapl);
// Get file size
- hsize_t file_size;
- herr_t ret = fid.getFileSize(&file_size);
- CHECK(ret, FAIL, "H5File::getFileSize");
+ hsize_t file_size = fid.getFileSize();
// Check if file size is reasonable. It's supposed to be 2KB now.
if(file_size<1*KB || file_size>4*KB)