summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tfile.c b/test/tfile.c
index e477622..dc971e7 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -1254,8 +1254,8 @@ test_file_freespace(void)
/* Delete datasets in file */
for(u = 0; u < 10; u++) {
sprintf(name, "Dataset %u", u);
- ret = H5Gunlink(file, name);
- CHECK(ret, FAIL, "H5Gunlink");
+ ret = H5Ldelete(file, name, H5P_DEFAULT);
+ CHECK(ret, FAIL, "H5Ldelete");
} /* end for */
/* Check that there is the right amount of free space in the file */