summaryrefslogtreecommitdiffstats
path: root/hl/test/test_ds.c
diff options
context:
space:
mode:
Diffstat (limited to 'hl/test/test_ds.c')
-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;
}
-