diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-07-09 02:46:44 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-07-09 02:46:44 (GMT) |
commit | fc30490143366c4558e239d3e70d266760e9a0be (patch) | |
tree | e5becd340c3ebe9e8043cb648399ac108d3e60b7 /c++/test/tfile.cpp | |
parent | 9f4a92e28f9ae268e738733e14e34bd2cd1a4a70 (diff) | |
download | hdf5-fc30490143366c4558e239d3e70d266760e9a0be.zip hdf5-fc30490143366c4558e239d3e70d266760e9a0be.tar.gz hdf5-fc30490143366c4558e239d3e70d266760e9a0be.tar.bz2 |
[svn-r8850] Purpose: Fixing minor bug
Description:
Changed call to H5File::getFileSize according to C library and
removed CHECK for this call because failure will be handled by
exception.
Platforms tested:
FreeBSD 4.10 (sleipnir)
Linux 2.4 (eirene)
Diffstat (limited to 'c++/test/tfile.cpp')
-rw-r--r-- | c++/test/tfile.cpp | 4 |
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) |