diff options
author | Jonathan Kim <jkm@hdfgroup.org> | 2011-04-22 22:23:45 (GMT) |
---|---|---|
committer | Jonathan Kim <jkm@hdfgroup.org> | 2011-04-22 22:23:45 (GMT) |
commit | d0495e29cc732b98a7408ae2f05e65e4deb0f9fe (patch) | |
tree | 10638324b6b504d700ea19f062025534e6ed9c42 /tools/h5dump/h5dumpgentest.c | |
parent | 8116ae4f78b450609fc53e4e28e9ab9b7da9f5e4 (diff) | |
download | hdf5-d0495e29cc732b98a7408ae2f05e65e4deb0f9fe.zip hdf5-d0495e29cc732b98a7408ae2f05e65e4deb0f9fe.tar.gz hdf5-d0495e29cc732b98a7408ae2f05e65e4deb0f9fe.tar.bz2 |
[svn-r20616] Purpose:
HDFFV-5948 - CHICAGO: Tools - implement missing external link test cases
Description:
Merged from HDF5 trunk r20595 and r20600.
Add three test cases for h5dump and h5ls.
- h5ls: external link to soft link with follow symlink.
- h5dump: external link to soft link with follow symlink.
- h5ls: external link to soft link without follow symlink.
Tested:
jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), cmake
Diffstat (limited to 'tools/h5dump/h5dumpgentest.c')
-rw-r--r-- | tools/h5dump/h5dumpgentest.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/h5dump/h5dumpgentest.c b/tools/h5dump/h5dumpgentest.c index 452441a..ab67db8 100644 --- a/tools/h5dump/h5dumpgentest.c +++ b/tools/h5dump/h5dumpgentest.c @@ -6887,6 +6887,11 @@ gent_extlinks(void) H5Lcreate_external(FILE62, "type", source_fid, "ext_link3", H5P_DEFAULT, H5P_DEFAULT); H5Lcreate_external(FILE62, "group/elink_t2", source_fid, "ext_link4", H5P_DEFAULT, H5P_DEFAULT); H5Lcreate_external(FILE62, "empty_group", source_fid, "ext_link5", H5P_DEFAULT, H5P_DEFAULT); +/* external link to soft link which linked to a dataset */ + H5Lcreate_external(FILE4_1, "/soft_dset1", source_fid, "ext2soft_link1", H5P_DEFAULT, H5P_DEFAULT); + +/* external link to dangle soft link */ + H5Lcreate_external(FILE4_1, "/soft_dangle", source_fid, "ext2softdangle_link1", H5P_DEFAULT, H5P_DEFAULT); /*------------------------------------------------------------------------- * create external link in the "far" file pointing to the source file |