diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-07 23:12:44 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2009-04-07 23:12:44 (GMT) |
commit | dc2b6bbce0b52dfaf5525b15053fa3e24ca91e34 (patch) | |
tree | a5859e6c4ec385cc84d654c44c85ca1fa206a105 /test/links.c | |
parent | 7d193a28a8686dcd5de57dc3208af18ef1580810 (diff) | |
download | hdf5-dc2b6bbce0b52dfaf5525b15053fa3e24ca91e34.zip hdf5-dc2b6bbce0b52dfaf5525b15053fa3e24ca91e34.tar.gz hdf5-dc2b6bbce0b52dfaf5525b15053fa3e24ca91e34.tar.bz2 |
[svn-r16695] Purpose: Fix bug 1526
Description:
Previously, H5Lcopy and H5Lmove would (through H5L_move) improperly apply the
"create intermediate groups" property to the source path traversal, and not the
destination. Fixed it to apply the property to the destination and not the
source. Also fixed H5Lcreate_ud to reject internal link classes without
throwing an assertion.
Tested: linew, jam, smirom (h5committtest)
Diffstat (limited to 'test/links.c')
-rw-r--r-- | test/links.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/links.c b/test/links.c index c169670..d9e9b52 100644 --- a/test/links.c +++ b/test/links.c @@ -7177,6 +7177,14 @@ ud_link_errors(hid_t fapl, hbool_t new_format) if((gid = H5Gcreate2(fid, "group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) FAIL_STACK_ERROR if(H5Gclose(gid) < 0) FAIL_STACK_ERROR + /* Try to create internally defined links with H5Lcreate_ud */ + H5E_BEGIN_TRY { + if(H5Lcreate_ud(fid, "/ud_link", H5L_TYPE_HARD, NULL, 0, H5P_DEFAULT, H5P_DEFAULT) >= 0) + TEST_ERROR + if(H5Lcreate_ud(fid, "/ud_link", H5L_TYPE_SOFT, "str", 4, H5P_DEFAULT, H5P_DEFAULT) >= 0) + TEST_ERROR + } H5E_END_TRY + /* Create a user-defined link to the group. */ strcpy(group_name, "/group"); if(H5Lcreate_ud(fid, "/ud_link", UD_CBFAIL_TYPE, &group_name, HDstrlen(group_name) + 1, H5P_DEFAULT, H5P_DEFAULT) < 0) FAIL_STACK_ERROR |