diff options
author | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2018-02-14 22:11:12 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@jam.ad.hdfgroup.org> | 2018-02-14 22:11:12 (GMT) |
commit | 76d70073c60163e97db98d3adfb745f2c561fdb2 (patch) | |
tree | 5070f869384c5df66aab9cb373fa34b795f186ae /test | |
parent | cdf75a2f2be48c5e13271e20978a785865e139ff (diff) | |
download | hdf5-76d70073c60163e97db98d3adfb745f2c561fdb2.zip hdf5-76d70073c60163e97db98d3adfb745f2c561fdb2.tar.gz hdf5-76d70073c60163e97db98d3adfb745f2c561fdb2.tar.bz2 |
Fix for daily test failure
Fix for test/testhdf5.sh for configuration with --enable-using-memchecker.
Diffstat (limited to 'test')
-rw-r--r-- | test/tfile.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/tfile.c b/test/tfile.c index 1678fb6..de1f362 100644 --- a/test/tfile.c +++ b/test/tfile.c @@ -5518,7 +5518,12 @@ test_libver_bounds_super_open(hid_t fapl, hid_t fcpl, htri_t is_swmr) H5E_BEGIN_TRY { fid = H5Fopen(FILE8, H5F_ACC_RDWR | (is_swmr ? H5F_ACC_SWMR_WRITE : 0), new_fapl); } H5E_END_TRY; - ok = fid >= 0; + + /* Get the internal file pointer if the open succeeds */ + if((ok = fid >= 0)) { + f = (H5F_t *)H5I_object(fid); + CHECK(f, NULL, "H5I_object"); + } /* Verify the file open succeeds or fails */ switch(super_vers) { |