summaryrefslogtreecommitdiffstats
path: root/test/tvlstr.c
diff options
context:
space:
mode:
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);