diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-08-03 22:35:58 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-08-03 22:35:58 (GMT) |
commit | b5724779d0b10f610de10bf2ab88d62202160272 (patch) | |
tree | d89656e3ceb6504d3338ddfb7ae8aec76db66159 /test | |
parent | b1e0516dd0b0795ec04dbe86f909412e94cbaa2a (diff) | |
download | hdf5-b5724779d0b10f610de10bf2ab88d62202160272.zip hdf5-b5724779d0b10f610de10bf2ab88d62202160272.tar.gz hdf5-b5724779d0b10f610de10bf2ab88d62202160272.tar.bz2 |
[svn-r12533] Standardized the way path prefixes are passed to external links using a
LAPL. Now there are H5Pget and H5Pset functions for "elink_prefixes".
Diffstat (limited to 'test')
-rw-r--r-- | test/links.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/links.c b/test/links.c index 27449c8..0ecbf5e 100644 --- a/test/links.c +++ b/test/links.c @@ -3187,11 +3187,9 @@ ext_link_endian(hid_t fapl) /* Create a link access property list with the path to the srcdir */ if((lapl_id = H5Pcreate(H5P_LINK_ACCESS)) < 0) TEST_ERROR; - if(H5Pinsert(lapl_id, H5L_ELINK_PREFIX_PROP, strlen(pathbuf) + 1, pathbuf, - NULL, NULL, NULL, NULL, NULL, NULL) < 0) TEST_ERROR; + if(H5Pset_elink_prefix(lapl_id, pathbuf) < 0) TEST_ERROR; if(HDstrlen(pathbuf) + HDstrlen(LE_FILENAME) >= sizeof(namebuf)) TEST_ERROR; - HDstrcpy(namebuf, pathbuf); HDstrcat(namebuf, LE_FILENAME); @@ -3208,7 +3206,6 @@ ext_link_endian(hid_t fapl) if(H5Fclose(fid) < 0) TEST_ERROR; if(HDstrlen(pathbuf) + HDstrlen(BE_FILENAME) >= sizeof(namebuf)) TEST_ERROR; - HDstrcpy(namebuf, pathbuf); HDstrcat(namebuf, BE_FILENAME); |