summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2005-03-24 16:31:29 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2005-03-24 16:31:29 (GMT)
commit346e37b57bdefbe6eaf06c96e9549b8c4f4a7a84 (patch)
treed538b877efc22c117c7cab96f4829e81b533d87c /hl/test
parent87252df68c4b87dd1330f5de95ac2f9c332dca1c (diff)
downloadhdf5-346e37b57bdefbe6eaf06c96e9549b8c4f4a7a84.zip
hdf5-346e37b57bdefbe6eaf06c96e9549b8c4f4a7a84.tar.gz
hdf5-346e37b57bdefbe6eaf06c96e9549b8c4f4a7a84.tar.bz2
[svn-r10403] Purpose:
new tests bug fix Description: added new tests for iterartors (on many scales, on group, on deleted scales) fixed a bug on H5DSiterate, an ID of the referenced scale was not being closed on the cycle Solution: Platforms tested: linux solaris Misc. update:
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_ds.c26
1 files changed, 24 insertions, 2 deletions
diff --git a/hl/test/test_ds.c b/hl/test/test_ds.c
index 5e6b2fc..e6da329 100644
--- a/hl/test/test_ds.c
+++ b/hl/test/test_ds.c
@@ -65,7 +65,6 @@ static int test_iterators(void);
-
/*-------------------------------------------------------------------------
* the main program
*-------------------------------------------------------------------------
@@ -2383,10 +2382,34 @@ static int test_iterators(void)
if (H5Gclose(gid)<0)
goto out;
+ PASSED();
+
+/*-------------------------------------------------------------------------
+ * iterate in deleted scales
+ *-------------------------------------------------------------------------
+ */
+
+ TESTING2("iterate in deleted scales ");
+
+ if (H5Gunlink(fid,"ds_0")<0)
+ goto out;
+
+ /* open the previously written "dset_a" */
+ if ((did = H5Dopen(fid,"dset_a"))<0)
+ goto out;
+
+ /* iterate */
+ if (H5DSiterate_scales(did,0,NULL,op_bogus,NULL)==SUCCESS)
+ goto out;
+
+ /* close */
+ if (H5Dclose(did)<0)
+ goto out;
PASSED();
+
/* close */
if (H5Fclose(fid)<0)
goto out;
@@ -2403,4 +2426,3 @@ out:
return FAIL;
}
-