summaryrefslogtreecommitdiffstats
path: root/test/tvlstr.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-29 20:44:19 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-29 20:44:19 (GMT)
commitdb3c155bf296fa06ab0df56bb7307f2ba19613e5 (patch)
tree722dbba200b5baf9b45de8187ea3af0d0f7f48ca /test/tvlstr.c
parenta4c8e8fd5636e6059beb2031cb98af3dc1617dd3 (diff)
downloadhdf5-db3c155bf296fa06ab0df56bb7307f2ba19613e5.zip
hdf5-db3c155bf296fa06ab0df56bb7307f2ba19613e5.tar.gz
hdf5-db3c155bf296fa06ab0df56bb7307f2ba19613e5.tar.bz2
[svn-r14126] Description:
Move H5Gunlink to deprecated symbol section, replacing internal calls with H5Ldelete. Tested on: FreeBSD/32 6.2 (duty) FreeBSD/64 6.2 (liberty) Linux/32 2.6 (kagiso) Linux/64 2.6 (smirom) Solaris/32 5.10 (linew) Mac OS X/32 10.4.10 (amazon)
Diffstat (limited to 'test/tvlstr.c')
-rw-r--r--test/tvlstr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/tvlstr.c b/test/tvlstr.c
index 272186b..f4f77b9 100644
--- a/test/tvlstr.c
+++ b/test/tvlstr.c
@@ -808,24 +808,24 @@ static void test_vl_rewrite(void)
}
/* Read back from file 2 */
- for(i=0; i<REWRITE_NDATASETS; i++) {
+ for(i = 0; i < REWRITE_NDATASETS; i++) {
sprintf(name, "/set_%d", i);
read_scalar_dset(file2, type, space, name, name);
- }
+ } /* end for */
/* Remove from file 2. */
- for(i=0; i<REWRITE_NDATASETS; i++) {
+ for(i = 0; i < REWRITE_NDATASETS; i++) {
sprintf(name, "/set_%d", i);
- ret = H5Gunlink(file2, name);
- CHECK(ret, FAIL, "H5Gunlink");
- }
+ ret = H5Ldelete(file2, name, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Ldelete");
+ } /* end for */
/* Effectively copy from file 1 to file 2 */
- for(i=0; i<REWRITE_NDATASETS; i++) {
+ for(i = 0; i < REWRITE_NDATASETS; i++) {
sprintf(name, "/set_%d", i);
read_scalar_dset(file1, type, space, name, name);
write_scalar_dset(file2, type, space, name, name);
- }
+ } /* end for */
/* Close everything */
ret = H5Tclose(type);