diff options
author | Vailin Choi <vchoi@hdfgroup.org> | 2015-07-09 04:39:48 (GMT) |
---|---|---|
committer | Vailin Choi <vchoi@hdfgroup.org> | 2015-07-09 04:39:48 (GMT) |
commit | d90da43810fee65b1996a66e827465bd2244c549 (patch) | |
tree | 8b5888b471e441055aa942a5d3e4fef8924acfaf /hl | |
parent | 3cd1ab20e51cd1717f8073c02c91d8daf3ce0410 (diff) | |
download | hdf5-d90da43810fee65b1996a66e827465bd2244c549.zip hdf5-d90da43810fee65b1996a66e827465bd2244c549.tar.gz hdf5-d90da43810fee65b1996a66e827465bd2244c549.tar.bz2 |
[svn-r27356] Fixes for revise_chunks daily test failures:
(1) Clear status flag for th5s.h5
(2) Close dataset/file in test_file_image.c
Tested on jam, koala, ostrich, moohan, quail.
Diffstat (limited to 'hl')
-rw-r--r-- | hl/test/test_file_image.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hl/test/test_file_image.c b/hl/test/test_file_image.c index fe0329d..6ff5bf4 100644 --- a/hl/test/test_file_image.c +++ b/hl/test/test_file_image.c @@ -398,7 +398,9 @@ test_file_image(size_t open_images, size_t nflags, unsigned *flags) H5Aclose(attr_id); } H5E_END_TRY; #endif - file_id[i] = -1; + if (H5Dclose(dset_id[i]) < 0) + FAIL_PUTS_ERROR("H5Dclose() failed"); + dset_id[i] = -1; } /* end if */ else { /* write dataset without extending it */ @@ -427,7 +429,7 @@ test_file_image(size_t open_images, size_t nflags, unsigned *flags) /* read open file images and verify data */ for (i = 0; i < open_images; i++) { /* if opening the file image failed, continue next iteration */ - if ((file_id[i] < 0) || (!(input_flags[i] & H5LT_FILE_IMAGE_OPEN_RW ))) + if ((dset_id[i] < 0) || (file_id[i] < 0) || (!(input_flags[i] & H5LT_FILE_IMAGE_OPEN_RW ))) continue; /* open dataset in file image */ |