Skip to content

Commit

Permalink
Replace hbool_t with bool in test code
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Oct 18, 2024
1 parent 0a1e19b commit 7e36935
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion test/cmpd_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static hid_t create_stype1(void);
static hid_t create_stype2(void);
static hid_t create_stype3(void);
static hid_t create_stype4(void);
static int compare_data(void *src_data, void *dst_data, hbool_t src_subset);
static int compare_data(void *src_data, void *dst_data, bool src_subset);
static int compare_stype4_data(void *expect_buf, void *rbuf);
static int compare_s1_data(void *expect_buf, void *rbuf);
static int compare_s1_s3_data(void *expect_buf, void *rbuf);
Expand Down
2 changes: 1 addition & 1 deletion test/error_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ test_pause(void)
const char *err_msg1 = "Error message #1"; /* Error message #1 for pushing error */
ssize_t err_num; /* Number of errors on stack */
hid_t estack_id1 = H5I_INVALID_HID; /* Error stack ID */
hbool_t is_paused; /* Whether error stack is paused */
bool is_paused; /* Whether error stack is paused */
herr_t ret; /* Generic return value */

/* Push an error */
Expand Down
8 changes: 4 additions & 4 deletions test/h5test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2394,10 +2394,10 @@ h5_check_file_locking_env_var(htri_t *use_locks, htri_t *ignore_disabled_locks)
herr_t
h5_using_native_vol(hid_t fapl_id, hid_t obj_id, bool *is_native_vol)
{
hbool_t is_native = false;
hid_t native_id = H5I_INVALID_HID;
hid_t vol_id = H5I_INVALID_HID;
herr_t ret_value = SUCCEED;
bool is_native = false;
hid_t native_id = H5I_INVALID_HID;
hid_t vol_id = H5I_INVALID_HID;
herr_t ret_value = SUCCEED;

assert((fapl_id >= 0) || (obj_id >= 0));
assert(is_native_vol);
Expand Down
8 changes: 4 additions & 4 deletions test/ttsafe_rec_rwlock.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ typedef struct rec_rwlock_test_udata_t {
static H5TS_THREAD_RETURN_TYPE
tts_rec_rwlock_smoke_check_test_thread(void *_udata)
{
hbool_t read;
bool read;
int32_t rec_lock_depth = 0;
int32_t max_rec_lock_depth;
int32_t rd_locks_remaining;
Expand Down Expand Up @@ -556,7 +556,7 @@ tts_rec_rwlock_smoke_check_2(const void H5_ATTR_UNUSED *params)
H5TS_thread_t threads[MAX_NUM_THREADS];
rec_rwlock_test_udata_t *udata = NULL;
#if H5TS_ENABLE_REC_RWLOCK_STATS
hbool_t verbose = false;
bool verbose = false;
int32_t total_target_rd_lock_cycles = 0;
int32_t total_target_wr_lock_cycles = 0;
H5TS_rec_rwlock_stats_t stats;
Expand Down Expand Up @@ -762,7 +762,7 @@ tts_rec_rwlock_smoke_check_3(const void H5_ATTR_UNUSED *params)
H5TS_thread_t threads[MAX_NUM_THREADS];
rec_rwlock_test_udata_t *udata = NULL;
#if H5TS_ENABLE_REC_RWLOCK_STATS
hbool_t verbose = false;
bool verbose = false;
int32_t total_target_rd_lock_cycles = 0;
int32_t total_target_wr_lock_cycles = 0;
H5TS_rec_rwlock_stats_t stats;
Expand Down Expand Up @@ -968,7 +968,7 @@ tts_rec_rwlock_smoke_check_4(const void H5_ATTR_UNUSED *params)
H5TS_thread_t threads[MAX_NUM_THREADS];
rec_rwlock_test_udata_t *udata = NULL;
#if H5TS_ENABLE_REC_RWLOCK_STATS
hbool_t verbose = false;
bool verbose = false;
int32_t total_target_rd_lock_cycles = 0;
int32_t total_target_wr_lock_cycles = 0;
H5TS_rec_rwlock_stats_t stats;
Expand Down
4 changes: 2 additions & 2 deletions test/vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ test_basic_file_operation(const char *driver_name)
*/
h5_check_file_locking_env_var(&use_locking_env, &ignore_disabled_env);
if (use_locking_env != FAIL) {
hbool_t default_use_locking = true;
hbool_t default_ignore_disabled_locks = true;
bool default_use_locking = true;
bool default_ignore_disabled_locks = true;

if (H5Pget_file_locking(H5P_DEFAULT, &default_use_locking, &default_ignore_disabled_locks) < 0)
TEST_ERROR;
Expand Down

0 comments on commit 7e36935

Please sign in to comment.