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, 4 insertions, 0 deletions
diff --git a/test/tfile.c b/test/tfile.c
index 05a0765..ece7cdb 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -576,6 +576,10 @@ test_file_close(void)
ret = H5Fclose(fid2);
VERIFY(ret, FAIL, "H5Fclose");
+ /* Same check with H5Idec_ref() (should fail also) */
+ ret = H5Idec_ref(fid2);
+ VERIFY(ret, FAIL, "H5Idec_ref");
+
ret = H5Gclose(group_id3);
CHECK(ret, FAIL, "H5Gclose");