summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-31 19:33:18 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2014-07-31 19:33:18 (GMT)
commit1b45e8a31aadfeb67fbba7c25ab38e84ca519f3d (patch)
tree4ebaebd4293f974666ed26d629e7511ba2793c93 /test
parente8c162613b75fb3b269830defa769728f439db72 (diff)
downloadhdf5-1b45e8a31aadfeb67fbba7c25ab38e84ca519f3d.zip
hdf5-1b45e8a31aadfeb67fbba7c25ab38e84ca519f3d.tar.gz
hdf5-1b45e8a31aadfeb67fbba7c25ab38e84ca519f3d.tar.bz2
[svn-r25501] bring 25500 from trunk to fix HDFFV-8888 - H5Ldelete_by_idx fails on non-existent group name.
Diffstat (limited to 'test')
-rw-r--r--test/links.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/links.c b/test/links.c
index 26bfaa8..95398cd 100644
--- a/test/links.c
+++ b/test/links.c
@@ -11448,6 +11448,12 @@ delete_by_idx(hid_t fapl)
} H5E_END_TRY;
if(ret >= 0) TEST_ERROR
+ /* Check for deletion on non-existing group */
+ H5E_BEGIN_TRY {
+ ret = H5Ldelete_by_idx(group_id, "None", idx_type, order, (hsize_t)0, H5P_DEFAULT);
+ } H5E_END_TRY;
+ if(ret >= 0) TEST_ERROR
+
/* Create several links, up to limit of compact form */
for(u = 0; u < max_compact; u++) {
hid_t group_id2; /* Group ID */