diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-08-28 19:47:00 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-08-28 19:47:00 (GMT) |
commit | a84811bfb889762150014188680fad0ce05877ba (patch) | |
tree | e2dac8f7d6d8a7c0e306d3706e4433bd31e70f0c /test/links.c | |
parent | 2785c61b8daddefe90c38f7e57d75957d906e8b8 (diff) | |
download | hdf5-a84811bfb889762150014188680fad0ce05877ba.zip hdf5-a84811bfb889762150014188680fad0ce05877ba.tar.gz hdf5-a84811bfb889762150014188680fad0ce05877ba.tar.bz2 |
[svn-r14117] Description:
Move H5Glink() into "deprecated routines" section, replacing internal
usage with H5Lcreate_hard/H5Lcreate_soft.
Tested on:
FreeBSD/32 6.2 (duty)
FreeBSD/64 6.2 (liberty)
Solaris/32 5.10 (linew)
Diffstat (limited to 'test/links.c')
-rw-r--r-- | test/links.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/links.c b/test/links.c index 9fd6c09..0b1a85f 100644 --- a/test/links.c +++ b/test/links.c @@ -1467,6 +1467,7 @@ error: * *------------------------------------------------------------------------- */ +#ifndef H5_NO_DEPRECATED_SYMBOLS static int test_compat(hid_t fapl, hbool_t new_format) { @@ -1562,6 +1563,7 @@ error: } H5E_END_TRY; return 1; } /* end test_compat() */ +#endif /* H5_NO_DEPRECATED_SYMBOLS */ /*------------------------------------------------------------------------- @@ -5172,7 +5174,7 @@ linkinfo(hid_t fapl, hbool_t new_format) if((tid = H5Tcopy(H5T_NATIVE_INT)) < 0) TEST_ERROR if(H5Tcommit(fid, "datatype", tid) < 0) TEST_ERROR if((gid = H5Gcreate2(fid, "group", H5P_DEFAULT, H5P_DEFAULT, H5P_DEFAULT)) < 0) TEST_ERROR - if(H5Glink(fid, H5G_LINK_SOFT, "group", "softlink") < 0) TEST_ERROR + if(H5Glink2(fid, "group", H5G_LINK_SOFT, H5G_SAME_LOC, "softlink") < 0) TEST_ERROR if((sid = H5Screate(H5S_SCALAR)) < 0) TEST_ERROR if((did = H5Dcreate(fid, "dataset", H5T_NATIVE_INT, sid, H5P_DEFAULT)) < 0) TEST_ERROR @@ -9580,7 +9582,9 @@ main(void) nerrors += test_move((new_format ? fapl2 : fapl), new_format); nerrors += test_copy((new_format ? fapl2 : fapl), new_format); nerrors += test_move_preserves((new_format ? fapl2 : fapl), new_format); +#ifndef H5_NO_DEPRECATED_SYMBOLS nerrors += test_compat((new_format ? fapl2 : fapl), new_format); +#endif /* H5_NO_DEPRECATED_SYMBOLS */ #ifndef H5_CANNOT_OPEN_TWICE nerrors += external_link_root((new_format ? fapl2 : fapl), new_format) < 0 ? 1 : 0; #endif /* H5_CANNOT_OPEN_TWICE */ |