Skip to content

Commit

Permalink
Remove FALSE from some API tests (#4977)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF authored Oct 18, 2024
1 parent 4a10a06 commit 0559ba6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/API/H5_api_link_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ test_create_hard_link_many(void)
hid_t file_id = H5I_INVALID_HID;
hid_t container_group = H5I_INVALID_HID;
hid_t group_id = H5I_INVALID_HID, group_id2 = H5I_INVALID_HID;
bool valid_name_matched = FALSE;
bool valid_name_matched = false;
char objname[HARD_LINK_TEST_GROUP_MANY_NAME_BUF_SIZE]; /* Object name */

TESTING("hard link creation of many links");
Expand Down Expand Up @@ -1573,7 +1573,7 @@ static int
test_create_soft_link_many(void)
{
htri_t link_exists = FAIL;
bool valid_name_matched = FALSE;
bool valid_name_matched = false;
hid_t file_id = H5I_INVALID_HID;
hid_t container_group = H5I_INVALID_HID;
hid_t group_id = H5I_INVALID_HID;
Expand Down
6 changes: 3 additions & 3 deletions test/API/H5_api_object_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -5133,11 +5133,11 @@ test_object_visit(void)
if (dset_dtype != H5I_INVALID_HID)
H5Tclose(dset_dtype);

if ((fspace_id = generate_random_dataspace(OBJECT_VISIT_TEST_SPACE_RANK, NULL, NULL, FALSE)) < 0) {
if ((fspace_id = generate_random_dataspace(OBJECT_VISIT_TEST_SPACE_RANK, NULL, NULL, false)) < 0) {
TEST_ERROR;
}

if ((dset_dtype = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
if ((dset_dtype = generate_random_datatype(H5T_NO_CLASS, false)) < 0) {
TEST_ERROR;
}

Expand All @@ -5149,7 +5149,7 @@ test_object_visit(void)

} while (((long unsigned int)num_elems * elem_size) > OBJECT_VISIT_TEST_TOTAL_DATA_SIZE_LIMIT);

if ((type_id = generate_random_datatype(H5T_NO_CLASS, FALSE)) < 0) {
if ((type_id = generate_random_datatype(H5T_NO_CLASS, false)) < 0) {
H5_FAILED();
printf(" couldn't create datatype '%s'\n", OBJECT_VISIT_TEST_TYPE_NAME);
goto error;
Expand Down

0 comments on commit 0559ba6

Please sign in to comment.