summaryrefslogtreecommitdiffstats
path: root/test/tfile.c
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-20 06:28:17 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2015-10-20 06:28:17 (GMT)
commit2094d8646199996f655bb5f56f142216bc2abfcf (patch)
tree2af40c4dddb881f62de5d61643e94932821ae29d /test/tfile.c
parent2af0d74216f1cdb0608a535a74c2a318a60b6e26 (diff)
downloadhdf5-2094d8646199996f655bb5f56f142216bc2abfcf.zip
hdf5-2094d8646199996f655bb5f56f142216bc2abfcf.tar.gz
hdf5-2094d8646199996f655bb5f56f142216bc2abfcf.tar.bz2
[svn-r28138] Add first support for _Bool and make hbool_t a "real" _Bool if available
Fix tests accordingly and fix misuse of hbool_t in various places Fix initialization of H5Pgcpl/ocpl structs in property decoding routines Tested on: Linux/32 (jam) Linux/64 (platypus) Linux/PPC64 (ostrich) MacOSX/64 10.11
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 5fc528e..c36045b 100644
--- a/test/tfile.c
+++ b/test/tfile.c
@@ -3058,7 +3058,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 */
- hbool_t new_format; /* new format or old format */
+ unsigned new_format; /* new format or old format */
herr_t ret; /* return value */
/* Output message about test being performed */
@@ -3121,7 +3121,7 @@ test_filespace_info(void)
/* Create the file with the specified file space info */
fid1 = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl1, my_fapl);
- CHECK(ret, FAIL, "H5Fcreate");
+ CHECK(fid1, FAIL, "H5Fcreate");
/* Close the file */
ret = H5Fclose(fid1);
@@ -3129,7 +3129,7 @@ test_filespace_info(void)
/* Re-open the file */
fid2 = H5Fopen(filename, H5F_ACC_RDWR, my_fapl);
- CHECK(ret, FAIL, "H5Fopen");
+ CHECK(fid2, FAIL, "H5Fopen");
/* Get the file's creation property */
fcpl2 = H5Fget_create_plist(fid2);