diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-07-09 00:42:11 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2004-07-09 00:42:11 (GMT) |
commit | 65cf95ab064957cf7550fe99a24790fed7b84652 (patch) | |
tree | 9bd1e7bd7a86a523e2412f62f028a43fd343805d /c++/test | |
parent | 3062c4dd1ea8342088de57a1450437aac35a0ca3 (diff) | |
download | hdf5-65cf95ab064957cf7550fe99a24790fed7b84652.zip hdf5-65cf95ab064957cf7550fe99a24790fed7b84652.tar.gz hdf5-65cf95ab064957cf7550fe99a24790fed7b84652.tar.bz2 |
[svn-r8843] 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:
SunOS 5.7 (arabica)
Linux 2.4 (eirene)
C tests are having problems, but I did run the C++ tests.
Misc. update:
Diffstat (limited to 'c++/test')
-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 c756e2f..d6f9bc4 100644 --- a/c++/test/tfile.cpp +++ b/c++/test/tfile.cpp @@ -350,9 +350,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) |