summaryrefslogtreecommitdiffstats
path: root/test/objcopy.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-14 04:05:28 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-14 04:05:28 (GMT)
commitd16a803257ca2b2d4c03db4c7b5649fed690bfcf (patch)
treed175b5eefe2856a146d902aea089fb9f15e014d4 /test/objcopy.c
parent00a50871bb7e561515f81cebd45c2de03b6cc9d4 (diff)
downloadhdf5-d16a803257ca2b2d4c03db4c7b5649fed690bfcf.zip
hdf5-d16a803257ca2b2d4c03db4c7b5649fed690bfcf.tar.gz
hdf5-d16a803257ca2b2d4c03db4c7b5649fed690bfcf.tar.bz2
[svn-r13750] Description:
Various minor cleanups found while working on the "unique, but sharable" ISOHM changes. Tested on: Mac OS X/32 10.4.9 (amazon) FreeBSD/32 6.2 (duty)
Diffstat (limited to 'test/objcopy.c')
-rwxr-xr-xtest/objcopy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index c773440..27a29d1 100755
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -32,6 +32,8 @@
#include "H5Spkg.h" /* Dataspaces */
#include "H5Dprivate.h" /* Datasets (for EFL property name) */
+#include "H5Fprivate.h" /* File access */
+#include "H5Iprivate.h" /* IDs */
const char *FILENAME[] = {
@@ -1148,7 +1150,9 @@ compare_datasets(hid_t did, hid_t did2, hid_t pid, const void *wbuf)
/* Release raw data buffers */
HDfree(rbuf);
+ rbuf = NULL;
HDfree(rbuf2);
+ rbuf2 = NULL;
/* close the source dataspace */
if(H5Sclose(sid) < 0) TEST_ERROR
@@ -3408,6 +3412,11 @@ test_copy_dataset_attr_named_dtype(hid_t fcpl_src, hid_t fcpl_dst, hid_t fapl)
if(H5Fclose(fid_src) < 0) TEST_ERROR
+ /* Check that all file IDs have been closed */
+ if(H5I_nmembers(H5I_FILE) != 0) TEST_ERROR
+ if(H5F_sfile_assert_num(0) != 0) TEST_ERROR
+
+
/* open the source file with read-only */
if((fid_src = H5Fopen(src_filename, H5F_ACC_RDONLY, fapl)) < 0) TEST_ERROR