summaryrefslogtreecommitdiffstats
path: root/test/vds.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-09-05 20:11:52 (GMT)
committerGitHub <noreply@github.com>2023-09-05 20:11:52 (GMT)
commit920869796031ed4ee9c1fbea8aaccda3592a88b3 (patch)
tree30f007ff79b87a79c882d9149cdbfcb797be92e1 /test/vds.c
parentae1379094b71c51342772397af5caca088862a61 (diff)
downloadhdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.zip
hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.gz
hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.bz2
Convert hbool_t --> bool in test (#3494)
Diffstat (limited to 'test/vds.c')
-rw-r--r--test/vds.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/vds.c b/test/vds.c
index 48cd522..40c9e87 100644
--- a/test/vds.c
+++ b/test/vds.c
@@ -121,7 +121,7 @@ vds_select_equal(hid_t space1, hid_t space2)
hsize_t *buf1 = NULL;
hsize_t *buf2 = NULL;
size_t i;
- htri_t ret_value = TRUE;
+ htri_t ret_value = true;
/* Get and compare selection types */
if ((type1 = H5Sget_select_type(space1)) < 0)
@@ -129,7 +129,7 @@ vds_select_equal(hid_t space1, hid_t space2)
if ((type2 = H5Sget_select_type(space2)) < 0)
TEST_ERROR;
if (type1 != type2)
- return FALSE;
+ return false;
/* Check selection type */
switch (type1) {
@@ -149,7 +149,7 @@ vds_select_equal(hid_t space1, hid_t space2)
if ((rank2 = H5Sget_simple_extent_ndims(space2)) < 0)
TEST_ERROR;
if (rank1 != rank2)
- return FALSE;
+ return false;
/* Get and compare number of points */
if ((npoints1 = H5Sget_select_elem_npoints(space1)) < 0)
@@ -157,7 +157,7 @@ vds_select_equal(hid_t space1, hid_t space2)
if ((npoints2 = H5Sget_select_elem_npoints(space2)) < 0)
TEST_ERROR;
if (npoints1 != npoints2)
- return FALSE;
+ return false;
/* Allocate point lists. Do not return directly after
* allocating, to make sure buffers are freed. */
@@ -173,7 +173,7 @@ vds_select_equal(hid_t space1, hid_t space2)
TEST_ERROR;
for (i = 0; i < ((size_t)rank1 * (size_t)npoints1); i++)
if (buf1[i] != buf2[i]) {
- ret_value = FALSE;
+ ret_value = false;
break;
}
@@ -198,7 +198,7 @@ vds_select_equal(hid_t space1, hid_t space2)
if ((rank2 = H5Sget_simple_extent_ndims(space2)) < 0)
TEST_ERROR;
if (rank1 != rank2)
- return FALSE;
+ return false;
/* Get and compare number of blocks */
if ((nblocks1 = H5Sget_select_hyper_nblocks(space1)) < 0)
@@ -206,7 +206,7 @@ vds_select_equal(hid_t space1, hid_t space2)
if ((nblocks2 = H5Sget_select_hyper_nblocks(space2)) < 0)
TEST_ERROR;
if (nblocks1 != nblocks2)
- return FALSE;
+ return false;
/* Allocate block lists. Do not return directly after
* allocating, to make sure buffers are freed. */
@@ -224,7 +224,7 @@ vds_select_equal(hid_t space1, hid_t space2)
TEST_ERROR;
for (i = 0; i < ((size_t)2 * (size_t)rank1 * (size_t)nblocks1); i++)
if (buf1[i] != buf2[i]) {
- ret_value = FALSE;
+ ret_value = false;
break;
}
@@ -12301,7 +12301,7 @@ main(void)
unsigned bit_config;
H5F_libver_t low, high; /* Low and high bounds */
const char *env_h5_drvr; /* File Driver value from environment */
- hbool_t driver_is_parallel;
+ bool driver_is_parallel;
int nerrors = 0;
env_h5_drvr = HDgetenv(HDF5_DRIVER);