summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tfile.c')
-rw-r--r--test/tfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tfile.c b/test/tfile.c
index d8bcd54..52c8fd9 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -3049,7 +3049,7 @@ test_filespace_info(void)
char filename[FILENAME_LEN]; /* Filename to use */
H5F_file_space_type_t strategy, fs_type, def_type; /* File space handling strategy */
hsize_t threshold, fs_size, def_size; /* Free space section threshold */
- unsigned new_format; /* new format or old format */
+ hbool_t new_format; /* new format or old format */
herr_t ret; /* return value */
/* Output message about test being performed */
@@ -3112,7 +3112,7 @@ test_filespace_info(void)
/* Create the file with the specified file space info */
fid1 = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl1, my_fapl);
- CHECK(fid1, FAIL, "H5Fcreate");
+ CHECK(ret, FAIL, "H5Fcreate");
/* Close the file */
ret = H5Fclose(fid1);
@@ -3120,7 +3120,7 @@ test_filespace_info(void)
/* Re-open the file */
fid2 = H5Fopen(filename, H5F_ACC_RDWR, my_fapl);
- CHECK(fid2, FAIL, "H5Fopen");
+ CHECK(ret, FAIL, "H5Fopen");
/* Get the file's creation property */
fcpl2 = H5Fget_create_plist(fid2);