diff options
Diffstat (limited to 'test/cache.c')
-rw-r--r-- | test/cache.c | 10196 |
1 files changed, 5095 insertions, 5101 deletions
diff --git a/test/cache.c b/test/cache.c index 673b253..4e62886 100644 --- a/test/cache.c +++ b/test/cache.c @@ -41,12 +41,12 @@ hid_t saved_fcpl_id = H5P_DEFAULT; /* store the fcpl id here between * close. */ -hid_t saved_fid = -1; /* store the file id here between cache setup - * and takedown. - */ -hbool_t write_permitted = TRUE; -hbool_t try_core_file_driver = FALSE; -hbool_t core_file_driver_failed = FALSE; +hid_t saved_fid = H5I_INVALID_HID; /* store the file id here between cache setup + * and takedown. + */ +bool write_permitted = true; +bool try_core_file_driver = false; +bool core_file_driver_failed = false; /* global variable declarations: */ @@ -58,80 +58,80 @@ struct flush_cache_test_spec { int entry_num; int entry_type; int entry_index; - hbool_t insert_flag; + bool insert_flag; unsigned int flags; - hbool_t expected_deserialized; - hbool_t expected_serialized; - hbool_t expected_destroyed; + bool expected_deserialized; + bool expected_serialized; + bool expected_destroyed; }; struct pe_flush_cache_test_spec { int entry_num; int entry_type; int entry_index; - hbool_t insert_flag; + bool insert_flag; unsigned int flags; int num_pins; int pin_type[MAX_PINS]; int pin_idx[MAX_PINS]; - hbool_t expected_deserialized; - hbool_t expected_serialized; - hbool_t expected_destroyed; + bool expected_deserialized; + bool expected_serialized; + bool expected_destroyed; }; struct fo_flush_entry_check { - int entry_num; - int entry_type; - int entry_index; - size_t expected_size; - hbool_t in_cache; - hbool_t at_main_addr; - hbool_t is_dirty; - hbool_t is_protected; - hbool_t is_pinned; - hbool_t expected_deserialized; - hbool_t expected_serialized; - hbool_t expected_destroyed; + int entry_num; + int entry_type; + int entry_index; + size_t expected_size; + bool in_cache; + bool at_main_addr; + bool is_dirty; + bool is_protected; + bool is_pinned; + bool expected_deserialized; + bool expected_serialized; + bool expected_destroyed; }; struct fo_flush_cache_test_spec { int entry_num; int entry_type; int entry_index; - hbool_t insert_flag; + bool insert_flag; unsigned int flags; - hbool_t resize_flag; + bool resize_flag; size_t new_size; int num_pins; int pin_type[MAX_PINS]; int pin_idx[MAX_PINS]; int num_flush_ops; struct flush_op flush_ops[MAX_FLUSH_OPS]; - hbool_t expected_deserialized; - hbool_t expected_serialized; - hbool_t expected_destroyed; + bool expected_deserialized; + bool expected_serialized; + bool expected_destroyed; }; struct move_entry_test_spec { - int entry_type; - int entry_index; - hbool_t is_pinned; - hbool_t is_protected; + int entry_type; + int entry_index; + bool is_pinned; + bool is_protected; }; struct pinned_single_entry_test_spec { int test_num; int entry_type; int entry_idx; - hbool_t dirty_flag; - hbool_t mark_dirty; - hbool_t pop_mark_dirty_prot; - hbool_t pop_mark_dirty_pinned; - hbool_t unprotect_unpin; + bool dirty_flag; + bool mark_dirty; + bool pop_mark_dirty_prot; + bool pop_mark_dirty_pinned; + bool unprotect_unpin; unsigned int flags; unsigned int flush_flags; - hbool_t expected_serialized; - hbool_t expected_destroyed; + bool expected_serialized; + bool expected_destroyed; }; /* private function declarations: */ @@ -158,21 +158,23 @@ static void check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num struct pe_flush_cache_test_spec spec[]); static void check_flush_cache__single_entry(H5F_t *file_ptr); static void check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_type, int entry_idx, - hbool_t insert_flag, unsigned int flags, - unsigned int flush_flags, hbool_t expected_deserialized, - hbool_t expected_serialized, hbool_t expected_destroyed); -static void check_flush_cache__pinned_single_entry_test( - H5F_t *file_ptr, int test_num, int entry_type, int entry_idx, hbool_t unprot_dirty_flag, - hbool_t mark_dirty, hbool_t pop_mark_dirty_prot, hbool_t pop_mark_dirty_pinned, hbool_t unprotect_unpin, - unsigned int flags, unsigned int flush_flags, hbool_t expected_serialized, hbool_t expected_destroyed); -static void check_flush_cache__flush_ops(H5F_t *file_ptr); -static void check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flush_flags, - int spec_size, const struct fo_flush_cache_test_spec spec[], - unsigned init_expected_index_len, - size_t init_expected_index_size, unsigned expected_index_len, - size_t expected_index_size, int check_size, - struct fo_flush_entry_check check[]); -static void check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr); + bool insert_flag, unsigned int flags, + unsigned int flush_flags, bool expected_deserialized, + bool expected_serialized, bool expected_destroyed); +static void check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int entry_type, + int entry_idx, bool unprot_dirty_flag, + bool mark_dirty, bool pop_mark_dirty_prot, + bool pop_mark_dirty_pinned, bool unprotect_unpin, + unsigned int flags, unsigned int flush_flags, + bool expected_serialized, bool expected_destroyed); +static void check_flush_cache__flush_ops(H5F_t *file_ptr); +static void check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flush_flags, + int spec_size, const struct fo_flush_cache_test_spec spec[], + unsigned init_expected_index_len, + size_t init_expected_index_size, unsigned expected_index_len, + size_t expected_index_size, int check_size, + struct fo_flush_entry_check check[]); +static void check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr); static unsigned check_get_entry_status(unsigned paged); static unsigned check_expunge_entry(unsigned paged); static unsigned check_multiple_read_protect(unsigned paged); @@ -199,17 +201,17 @@ static unsigned check_unprotect_ro_dirty_err(unsigned paged); static unsigned check_protect_ro_rw_err(unsigned paged); static unsigned check_protect_retries(unsigned paged); static unsigned check_check_evictions_enabled_err(unsigned paged); -static unsigned check_auto_cache_resize(hbool_t cork_ageout, unsigned paged); +static unsigned check_auto_cache_resize(bool cork_ageout, unsigned paged); static unsigned check_auto_cache_resize_disable(unsigned paged); static unsigned check_auto_cache_resize_epoch_markers(unsigned paged); static unsigned check_auto_cache_resize_input_errs(unsigned paged); static unsigned check_auto_cache_resize_aux_fcns(unsigned paged); -static unsigned check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged); +static unsigned check_metadata_blizzard_absence(bool fill_via_insertion, unsigned paged); static unsigned check_flush_deps(unsigned paged); static unsigned check_flush_deps_err(unsigned paged); static unsigned check_flush_deps_order(unsigned paged); static unsigned check_notify_cb(unsigned paged); -static unsigned check_metadata_cork(hbool_t fill_via_insertion, unsigned paged); +static unsigned check_metadata_cork(bool fill_via_insertion, unsigned paged); static unsigned check_entry_deletions_during_scans(unsigned paged); static void cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr); static void cedds__H5C_make_space_in_cache(H5F_t *file_ptr); @@ -222,7 +224,7 @@ static void check_stats__smoke_check_1(H5F_t *file_ptr); static H5F_t *setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged); -static void takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats); +static void takedown_cache(H5F_t *file_ptr, bool dump_stats, bool dump_detailed_stats); /**************************************************************************/ /**************************************************************************/ @@ -245,10 +247,10 @@ static void takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_det static unsigned smoke_check_1(int express_test, unsigned paged) { - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - int dirty_destroys = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + int dirty_destroys = false; + bool display_stats = false; int32_t lag = 10; int32_t max_index = (10 * 1024) - 1; int mile_stone = 1; @@ -285,7 +287,7 @@ smoke_check_1(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -303,15 +305,15 @@ smoke_check_1(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -321,15 +323,15 @@ smoke_check_1(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -339,15 +341,15 @@ smoke_check_1(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -357,9 +359,9 @@ smoke_check_1(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -367,11 +369,11 @@ smoke_check_1(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -380,9 +382,9 @@ smoke_check_1(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -390,17 +392,17 @@ smoke_check_1(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -440,10 +442,10 @@ smoke_check_1(int express_test, unsigned paged) static unsigned smoke_check_2(int express_test, unsigned paged) { - hbool_t show_progress = FALSE; - int dirty_unprotects = TRUE; - int dirty_destroys = TRUE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = true; + int dirty_destroys = true; + bool display_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -480,7 +482,7 @@ smoke_check_2(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -498,15 +500,15 @@ smoke_check_2(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -516,15 +518,15 @@ smoke_check_2(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -534,15 +536,15 @@ smoke_check_2(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -552,9 +554,9 @@ smoke_check_2(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -562,11 +564,11 @@ smoke_check_2(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -575,9 +577,9 @@ smoke_check_2(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -585,17 +587,17 @@ smoke_check_2(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -634,10 +636,10 @@ smoke_check_2(int express_test, unsigned paged) static unsigned smoke_check_3(int express_test, unsigned paged) { - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - int dirty_destroys = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + int dirty_destroys = false; + bool display_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -674,7 +676,7 @@ smoke_check_3(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -692,15 +694,15 @@ smoke_check_3(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -710,15 +712,15 @@ smoke_check_3(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -728,15 +730,15 @@ smoke_check_3(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -746,9 +748,9 @@ smoke_check_3(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -756,11 +758,11 @@ smoke_check_3(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -769,9 +771,9 @@ smoke_check_3(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -779,17 +781,17 @@ smoke_check_3(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -829,10 +831,10 @@ smoke_check_3(int express_test, unsigned paged) static unsigned smoke_check_4(int express_test, unsigned paged) { - hbool_t show_progress = FALSE; - int dirty_unprotects = TRUE; - int dirty_destroys = TRUE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = true; + int dirty_destroys = true; + bool display_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -869,7 +871,7 @@ smoke_check_4(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -887,15 +889,15 @@ smoke_check_4(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -905,15 +907,15 @@ smoke_check_4(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -923,15 +925,15 @@ smoke_check_4(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -941,9 +943,9 @@ smoke_check_4(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -951,11 +953,11 @@ smoke_check_4(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -964,9 +966,9 @@ smoke_check_4(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -974,17 +976,17 @@ smoke_check_4(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ true, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1025,9 +1027,9 @@ static unsigned smoke_check_5(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + bool display_stats = false; int32_t max_index = 1024; int mile_stone = 1; H5F_t *file_ptr = NULL; @@ -1035,7 +1037,7 @@ smoke_check_5(int express_test, unsigned paged) H5C_auto_size_ctl_t auto_size_ctl = { /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ NULL, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (2 * 1024 * 1024), /* double min_clean_fraction = */ 0.1, @@ -1051,7 +1053,7 @@ smoke_check_5(int express_test, unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -1065,12 +1067,12 @@ smoke_check_5(int express_test, unsigned paged) /* double decrement = */ 0.9, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.5}; if (paged) @@ -1104,7 +1106,7 @@ smoke_check_5(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1123,7 +1125,7 @@ smoke_check_5(int express_test, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -1133,33 +1135,33 @@ smoke_check_5(int express_test, unsigned paged) hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 4 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 5 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE); + /* display_detailed_stats */ false, + /* do_inserts */ true); if (show_progress) /* 6 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1167,20 +1169,20 @@ smoke_check_5(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -1189,26 +1191,26 @@ smoke_check_5(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1249,9 +1251,9 @@ static unsigned smoke_check_6(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + bool display_stats = false; int mile_stone = 1; int32_t max_index = 1024; H5F_t *file_ptr = NULL; @@ -1259,7 +1261,7 @@ smoke_check_6(int express_test, unsigned paged) H5C_auto_size_ctl_t auto_size_ctl = { /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ NULL, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (2 * 1024 * 1024), /* double min_clean_fraction = */ 0.1, @@ -1275,7 +1277,7 @@ smoke_check_6(int express_test, unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -1289,12 +1291,12 @@ smoke_check_6(int express_test, unsigned paged) /* double decrement = */ 0.9, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; if (paged) @@ -1308,7 +1310,7 @@ smoke_check_6(int express_test, unsigned paged) return (0); } - pass = TRUE; + pass = true; switch (express_test) { case 0: @@ -1347,7 +1349,7 @@ smoke_check_6(int express_test, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -1357,33 +1359,33 @@ smoke_check_6(int express_test, unsigned paged) hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 4 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 5 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE); + /* display_detailed_stats */ false, + /* do_inserts */ true); if (show_progress) /* 6 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1391,20 +1393,20 @@ smoke_check_6(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -1413,26 +1415,26 @@ smoke_check_6(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1473,9 +1475,9 @@ static unsigned smoke_check_7(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + bool display_stats = false; int mile_stone = 1; int32_t max_index = 1024; H5F_t *file_ptr = NULL; @@ -1483,7 +1485,7 @@ smoke_check_7(int express_test, unsigned paged) H5C_auto_size_ctl_t auto_size_ctl = { /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ NULL, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (2 * 1024 * 1024), /* double min_clean_fraction = */ 0.1, @@ -1499,7 +1501,7 @@ smoke_check_7(int express_test, unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (8 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -1514,12 +1516,12 @@ smoke_check_7(int express_test, unsigned paged) /* double decrement = */ 0.9, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.1}; if (paged) @@ -1553,7 +1555,7 @@ smoke_check_7(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1572,7 +1574,7 @@ smoke_check_7(int express_test, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -1582,33 +1584,33 @@ smoke_check_7(int express_test, unsigned paged) hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 4 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 5 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE); + /* display_detailed_stats */ false, + /* do_inserts */ true); if (show_progress) /* 6 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1616,20 +1618,20 @@ smoke_check_7(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -1638,26 +1640,26 @@ smoke_check_7(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1698,9 +1700,9 @@ static unsigned smoke_check_8(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + bool display_stats = false; int mile_stone = 1; int32_t max_index = 1024; H5F_t *file_ptr = NULL; @@ -1708,7 +1710,7 @@ smoke_check_8(int express_test, unsigned paged) H5C_auto_size_ctl_t auto_size_ctl = { /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ NULL, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (2 * 1024 * 1024), /* double min_clean_fraction = */ 0.1, @@ -1724,7 +1726,7 @@ smoke_check_8(int express_test, unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -1739,12 +1741,12 @@ smoke_check_8(int express_test, unsigned paged) /* double decrement = */ 0.9, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.1}; if (paged) @@ -1778,7 +1780,7 @@ smoke_check_8(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1797,7 +1799,7 @@ smoke_check_8(int express_test, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -1807,33 +1809,33 @@ smoke_check_8(int express_test, unsigned paged) hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 4 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ FALSE); + /* display_detailed_stats */ false, + /* do_inserts */ false); if (show_progress) /* 5 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE); + /* display_detailed_stats */ false, + /* do_inserts */ true); if (show_progress) /* 6 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1841,20 +1843,20 @@ smoke_check_8(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 8 */ @@ -1863,26 +1865,26 @@ smoke_check_8(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); hl_col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ FALSE, - /* do_inserts */ TRUE, + /* display_detailed_stats */ false, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1926,11 +1928,11 @@ static unsigned smoke_check_9(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = FALSE; - int dirty_destroys = FALSE; - hbool_t display_stats = FALSE; - hbool_t display_detailed_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = false; + int dirty_destroys = false; + bool display_stats = false; + bool display_detailed_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -1968,7 +1970,7 @@ smoke_check_9(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -1988,11 +1990,11 @@ smoke_check_9(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 1.\n"; } } @@ -2003,15 +2005,15 @@ smoke_check_9(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2022,11 +2024,11 @@ smoke_check_9(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 1.\n"; } } @@ -2037,15 +2039,15 @@ smoke_check_9(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2054,11 +2056,11 @@ smoke_check_9(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 2.\n"; } } @@ -2070,15 +2072,15 @@ smoke_check_9(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2087,11 +2089,11 @@ smoke_check_9(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 2.\n"; } } @@ -2102,20 +2104,20 @@ smoke_check_9(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 11 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 3.\n"; } } @@ -2126,11 +2128,11 @@ smoke_check_9(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 13 */ @@ -2139,20 +2141,20 @@ smoke_check_9(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 14 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 3.\n"; } } @@ -2163,11 +2165,11 @@ smoke_check_9(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 16 */ @@ -2175,11 +2177,11 @@ smoke_check_9(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 4.\n"; } } @@ -2187,7 +2189,7 @@ smoke_check_9(int express_test, unsigned paged) if (show_progress) /* 17 */ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 18 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2231,11 +2233,11 @@ static unsigned smoke_check_10(int express_test, unsigned paged) { herr_t result; - hbool_t show_progress = FALSE; - int dirty_unprotects = TRUE; - int dirty_destroys = TRUE; - hbool_t display_stats = FALSE; - hbool_t display_detailed_stats = FALSE; + bool show_progress = false; + int dirty_unprotects = true; + int dirty_destroys = true; + bool display_stats = false; + bool display_detailed_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -2273,7 +2275,7 @@ smoke_check_10(int express_test, unsigned paged) break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2292,15 +2294,15 @@ smoke_check_10(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2309,11 +2311,11 @@ smoke_check_10(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 1.\n"; } } @@ -2324,15 +2326,15 @@ smoke_check_10(int express_test, unsigned paged) row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2341,11 +2343,11 @@ smoke_check_10(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 1.\n"; } } @@ -2356,15 +2358,15 @@ smoke_check_10(int express_test, unsigned paged) row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, /* dirty_destroys */ dirty_destroys, /* dirty_unprotects */ dirty_unprotects); @@ -2373,11 +2375,11 @@ smoke_check_10(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 2.\n"; } } @@ -2388,20 +2390,20 @@ smoke_check_10(int express_test, unsigned paged) /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 2.\n"; } } @@ -2412,11 +2414,11 @@ smoke_check_10(int express_test, unsigned paged) col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 12 */ @@ -2424,11 +2426,11 @@ smoke_check_10(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 3.\n"; } } @@ -2439,20 +2441,20 @@ smoke_check_10(int express_test, unsigned paged) /* flush all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ FALSE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ false, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 14 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't enable evictions 3.\n"; } } @@ -2463,11 +2465,11 @@ smoke_check_10(int express_test, unsigned paged) col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, /* display_detailed_stats */ display_detailed_stats, - /* do_inserts */ TRUE, + /* do_inserts */ true, /* dirty_unprotects */ dirty_unprotects); if (show_progress) /* 16 */ @@ -2475,11 +2477,11 @@ smoke_check_10(int express_test, unsigned paged) if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "can't disable evictions 4.\n"; } } @@ -2487,7 +2489,7 @@ smoke_check_10(int express_test, unsigned paged) if (show_progress) /* 17 */ fprintf(stdout, "%s() - %0d -- pass = %d -- evictions disabled\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 18 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2516,9 +2518,9 @@ smoke_check_10(int express_test, unsigned paged) * * Purpose: A basic test of the write permitted function. In essence, * we load the cache up with dirty entryies, set - * write_permitted to FALSE, and then protect a bunch of + * write_permitted to false, and then protect a bunch of * entries. If there are any writes while write_permitted is - * FALSE, the test will fail. + * false, the test will fail. * * Return: void * @@ -2535,8 +2537,8 @@ write_permitted_check(int #if H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS - hbool_t show_progress = FALSE; - hbool_t display_stats = FALSE; + bool show_progress = false; + bool display_stats = false; int32_t max_index = (10 * 1024) - 1; int32_t lag = 10; int mile_stone = 1; @@ -2571,7 +2573,7 @@ write_permitted_check(int break; } - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2589,57 +2591,57 @@ write_permitted_check(int row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ TRUE, - /* do_mult_ro_protects */ TRUE, - /* dirty_destroys */ TRUE, - /* dirty_unprotects */ TRUE); + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ true, + /* do_mult_ro_protects */ true, + /* dirty_destroys */ true, + /* dirty_unprotects */ true); if (show_progress) /* 4 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - write_permitted = FALSE; + write_permitted = false; row_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ FALSE, - /* do_moves */ TRUE, - /* move_to_main_addr */ TRUE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, - /* dirty_destroys */ FALSE, + /* display_detailed_stats */ true, + /* do_inserts */ false, + /* do_moves */ true, + /* move_to_main_addr */ true, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, + /* dirty_destroys */ false, /* dirty_unprotects */ NO_CHANGE); if (show_progress) /* 5 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - write_permitted = TRUE; + write_permitted = true; row_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* do_moves */ TRUE, - /* move_to_main_addr */ FALSE, - /* do_destroys */ FALSE, - /* do_mult_ro_protects */ TRUE, - /* dirty_destroys */ TRUE, - /* dirty_unprotects */ TRUE); + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* do_moves */ true, + /* move_to_main_addr */ false, + /* do_destroys */ false, + /* do_mult_ro_protects */ true, + /* dirty_destroys */ true, + /* dirty_unprotects */ true); if (show_progress) /* 6 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2647,9 +2649,9 @@ write_permitted_check(int /* flush and destroy all entries in the cache: */ flush_cache(/* file_ptr */ file_ptr, - /* destroy_entries */ TRUE, - /* dump_stats */ FALSE, - /* dump_detailed_stats */ FALSE); + /* destroy_entries */ true, + /* dump_stats */ false, + /* dump_detailed_stats */ false); if (show_progress) /* 7 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2657,34 +2659,34 @@ write_permitted_check(int col_major_scan_forward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ TRUE, - /* dirty_unprotects */ TRUE); + /* display_detailed_stats */ true, + /* do_inserts */ true, + /* dirty_unprotects */ true); if (show_progress) /* 8 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - write_permitted = FALSE; + write_permitted = false; col_major_scan_backward(/* file_ptr */ file_ptr, /* max_index */ max_index, /* lag */ lag, - /* verbose */ FALSE, - /* reset_stats */ TRUE, + /* verbose */ false, + /* reset_stats */ true, /* display_stats */ display_stats, - /* display_detailed_stats */ TRUE, - /* do_inserts */ FALSE, + /* display_detailed_stats */ true, + /* do_inserts */ false, /* dirty_unprotects */ NO_CHANGE); - write_permitted = TRUE; + write_permitted = true; if (show_progress) /* 9 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); - takedown_cache(file_ptr, display_stats, TRUE); + takedown_cache(file_ptr, display_stats, true); if (show_progress) /* 10 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -2738,10 +2740,10 @@ check_insert_entry(unsigned paged) int entry_type = PICO_ENTRY_TYPE; int i; herr_t result; - hbool_t in_cache; - hbool_t is_dirty; - hbool_t is_protected; - hbool_t is_pinned; + bool in_cache; + bool is_dirty; + bool is_protected; + bool is_pinned; size_t entry_size; H5F_t *file_ptr = NULL; H5C_t *cache_ptr = NULL; @@ -2754,7 +2756,7 @@ check_insert_entry(unsigned paged) else TESTING("H5C_insert_entry() functionality"); - pass = TRUE; + pass = true; /* Allocate a cache, and insert entries into it using all * combinations of flags. Verify that the entries are inserted, @@ -2796,7 +2798,7 @@ check_insert_entry(unsigned paged) if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_entry_status() reports failure."; } @@ -2805,7 +2807,7 @@ check_insert_entry(unsigned paged) /* check the universals */ if ((!in_cache) || (!is_dirty) || (is_protected) || (entry_size != entry_sizes[entry_type])) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 1."; } } @@ -2817,18 +2819,18 @@ check_insert_entry(unsigned paged) if (!is_pinned) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 2."; } } else if (is_pinned) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 3."; } else if (is_pinned != ((entry_ptr->header).is_pinned)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 4."; } } @@ -2844,13 +2846,13 @@ check_insert_entry(unsigned paged) if (!((entry_ptr->header).flush_marker)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 5."; } } else if ((entry_ptr->header).flush_marker) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 6."; } } @@ -2868,7 +2870,7 @@ check_insert_entry(unsigned paged) if (search_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 7."; } } @@ -2887,7 +2889,7 @@ check_insert_entry(unsigned paged) if (search_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 8."; } } @@ -2907,7 +2909,7 @@ check_insert_entry(unsigned paged) if (search_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 9."; } } @@ -2938,7 +2940,7 @@ check_insert_entry(unsigned paged) #endif /* H5C_MAINTAIN_CLEAN_AND_DIRTY_LRU_LISTS */ ) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 10."; } } @@ -2958,7 +2960,7 @@ check_insert_entry(unsigned paged) (cache_ptr->max_pl_len != 0) || (cache_ptr->max_pl_size != (size_t)0) || (cache_ptr->max_pel_len != 2) || (cache_ptr->max_pel_size != 2 * entry_sizes[entry_type])) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected insert results 11."; } } @@ -2974,7 +2976,7 @@ check_insert_entry(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -3014,7 +3016,7 @@ check_flush_cache(unsigned paged) else TESTING("H5C_flush_cache() functionality"); - pass = TRUE; + pass = true; /* allocate a cache, and flush it under various circumstances. * To the extent possible, verify that the desired actions took @@ -3058,7 +3060,7 @@ check_flush_cache(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -3096,12 +3098,12 @@ check_flush_cache__empty_cache(H5F_t *file_ptr) if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to empty cache case."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at beginning of empty cache case."; } @@ -3154,12 +3156,12 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to multi entry case."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at beginning of multi entry case."; } @@ -3171,67 +3173,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3244,67 +3246,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3317,67 +3319,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3390,67 +3392,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3463,67 +3465,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3536,67 +3538,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3609,67 +3611,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3683,67 +3685,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3758,67 +3760,67 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}}; check_flush_cache__multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3837,99 +3839,99 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 2, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 3, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 4, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 5, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 6, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, 20, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 7, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, 10, 20, 30, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}}; check_flush_cache__pe_multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -3942,93 +3944,93 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 2, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 3, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {MONSTER_ENTRY_TYPE, -1, -1, -1, -1 - 1, -1, -1}, /* pin_idx[MAX_PINS] = */ {10, -1, -1, -1 - 1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 2, /* pin_type[MAX_PINS] = */ {MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {10, 20, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 3, /* pin_type[MAX_PINS] = */ {MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, MONSTER_ENTRY_TYPE, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {10, 20, 30, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}}; check_flush_cache__pe_multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -4041,91 +4043,91 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}}; check_flush_cache__pe_multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -4138,93 +4140,93 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 4, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 4, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, PICO_ENTRY_TYPE, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, 75, 25, 50, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}}; check_flush_cache__pe_multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -4238,91 +4240,91 @@ check_flush_cache__multi_entry(H5F_t *file_ptr) {/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 0, /* pin_type[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {-1, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 75, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 25, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 4, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 5, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 6, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 30, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}, {/* entry_num = */ 7, /* entry_type = */ MONSTER_ENTRY_TYPE, /* entry_index = */ 40, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__SET_FLUSH_MARKER_FLAG, /* num_pins = */ 1, /* pin_type[MAX_PINS] = */ {PICO_ENTRY_TYPE, -1, -1, -1, -1, -1, -1, -1}, /* pin_idx[MAX_PINS] = */ {100, -1, -1, -1, -1, -1, -1, -1}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}}; + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}}; check_flush_cache__pe_multi_entry_test(file_ptr, test_num, flush_flags, spec_size, spec); } @@ -4352,21 +4354,21 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to single entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; - HDsnprintf(msg, (size_t)128, "cache not empty at beginning of multi entry test #%d.", test_num); + snprintf(msg, (size_t)128, "cache not empty at beginning of multi entry test #%d.", test_num); failure_mssg = msg; } else if ((spec_size < 1) || (spec == NULL)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "missing/bad test spec on entry to multi entry test #%d.", test_num); failure_mssg = msg; } @@ -4377,9 +4379,8 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int (spec[u].entry_type >= NUMBER_OF_ENTRY_TYPES) || (spec[u].entry_index < 0) || (spec[u].entry_index > max_indices[spec[u].entry_type])) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "bad data in spec[%u] on entry to multi entry test #%d.", u, - test_num); + pass = false; + snprintf(msg, (size_t)128, "bad data in spec[%u] on entry to multi entry test #%d.", u, test_num); failure_mssg = msg; } u++; @@ -4410,8 +4411,8 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int if (!pass) { - HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in multi entry test #%d.", flush_flags, - test_num); + snprintf(msg, (size_t)128, "flush with flags 0x%x failed in multi entry test #%d.", flush_flags, + test_num); failure_mssg = msg; } } @@ -4425,9 +4426,9 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int (entry_ptr->serialized != spec[u].expected_serialized) || (entry_ptr->destroyed != spec[u].expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Bad status on entry %u after flush in multi entry test #%d.", u, - test_num); + pass = false; + snprintf(msg, (size_t)128, "Bad status on entry %u after flush in multi entry test #%d.", u, + test_num); failure_mssg = msg; } u++; @@ -4440,9 +4441,9 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int (((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) != 0) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in multi entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after flush in multi entry test #%d.", + test_num); failure_mssg = msg; } } @@ -4454,15 +4455,15 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int if (!pass) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Flush failed on cleanup in multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Flush failed on cleanup in multi entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in multi entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in multi entry test #%d.", + test_num); failure_mssg = msg; } } @@ -4473,9 +4474,9 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int base_addr = entries[spec[u].entry_type]; entry_ptr = &(base_addr[spec[u].entry_index]); - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; u++; } @@ -4507,21 +4508,21 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to pe multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to pe multi entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; - HDsnprintf(msg, (size_t)128, "cache not empty at beginning of pe multi entry test #%d.", test_num); + snprintf(msg, (size_t)128, "cache not empty at beginning of pe multi entry test #%d.", test_num); failure_mssg = msg; } else if ((spec_size < 1) || (spec == NULL)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to pe multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "missing/bad test spec on entry to pe multi entry test #%d.", test_num); failure_mssg = msg; } @@ -4533,9 +4534,9 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i (spec[u].entry_index > max_indices[spec[u].entry_type]) || (spec[u].num_pins < 0) || (spec[u].num_pins > MAX_PINS)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "bad data in spec[%u] on entry to pe multi entry test #%d.", u, - test_num); + pass = false; + snprintf(msg, (size_t)128, "bad data in spec[%u] on entry to pe multi entry test #%d.", u, + test_num); failure_mssg = msg; } u++; @@ -4571,8 +4572,8 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i if (!pass) { - HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in pe multi entry test #%d.", - flush_flags, test_num); + snprintf(msg, (size_t)128, "flush with flags 0x%x failed in pe multi entry test #%d.", + flush_flags, test_num); failure_mssg = msg; } } @@ -4587,9 +4588,9 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i (entry_ptr->serialized != spec[u].expected_serialized) || (entry_ptr->destroyed != spec[u].expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Bad status on entry %u after flush in pe multi entry test #%d.", u, - test_num); + pass = false; + snprintf(msg, (size_t)128, "Bad status on entry %u after flush in pe multi entry test #%d.", u, + test_num); failure_mssg = msg; } u++; @@ -4602,9 +4603,9 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i (((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) != 0) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in pe multi entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after flush in pe multi entry test #%d.", + test_num); failure_mssg = msg; } } @@ -4616,15 +4617,15 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i if (!pass) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Flush failed on cleanup in pe multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Flush failed on cleanup in pe multi entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, - "Unexpected cache len/size after cleanup in pe multi entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in pe multi entry test #%d.", + test_num); failure_mssg = msg; } } @@ -4635,9 +4636,9 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i base_addr = entries[spec[u].entry_type]; entry_ptr = &(base_addr[spec[u].entry_index]); - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; u++; } @@ -4653,7 +4654,7 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i * the case in which the flush callback dirties, resizes, * and/or moves entries. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -4671,26 +4672,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to flush ops test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at beginning of flush ops test."; } spec = malloc((size_t)max_num_spec * sizeof(struct fo_flush_cache_test_spec)); if (spec == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate flush ops test spec array"; } checks = malloc((size_t)max_num_check * sizeof(struct fo_flush_entry_check)); if (checks == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate flush ops test check array"; } @@ -4716,9 +4717,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4726,26 +4727,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ 0, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4753,32 +4754,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -4810,9 +4811,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4820,26 +4821,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4847,32 +4848,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr*/ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -4901,9 +4902,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4911,32 +4912,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr:*/ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -4967,9 +4968,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -4977,32 +4978,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5040,9 +5041,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5050,32 +5051,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5094,7 +5095,7 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) */ if (pass) { - spec[0].flush_ops[1].flag = TRUE; + spec[0].flush_ops[1].flag = true; test_num = 6; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, @@ -5137,9 +5138,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5147,32 +5148,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5196,8 +5197,8 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) flush_flags = H5C__FLUSH_INVALIDATE_FLAG; expected_index_len = 0; expected_index_size = 0; - spec[0].flush_ops[1].flag = TRUE; - spec[0].expected_destroyed = TRUE; + spec[0].flush_ops[1].flag = true; + spec[0].expected_destroyed = true; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5230,9 +5231,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 2, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5240,32 +5241,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5284,7 +5285,7 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) */ if (pass) { - spec[0].flush_ops[1].flag = TRUE; + spec[0].flush_ops[1].flag = true; test_num = 10; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, @@ -5321,9 +5322,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 2, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5331,32 +5332,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5379,8 +5380,8 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) flush_flags = H5C__FLUSH_INVALIDATE_FLAG; expected_index_len = 0; expected_index_size = 0; - spec[0].flush_ops[1].flag = TRUE; - spec[0].expected_destroyed = TRUE; + spec[0].flush_ops[1].flag = true; + spec[0].expected_destroyed = true; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5414,9 +5415,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5424,44 +5425,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, 0, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, 0, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, 0, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ PICO_ENTRY_SIZE, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ PICO_ENTRY_SIZE, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5496,9 +5497,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5506,44 +5507,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 2, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, 0, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, 0, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, 0, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ PICO_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ PICO_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5576,9 +5577,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5586,44 +5587,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5657,9 +5658,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5667,44 +5668,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5737,9 +5738,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5747,44 +5748,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5801,10 +5802,10 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) if (pass) { test_num = 18; - spec[0].flush_ops[2].flag = TRUE; - spec[0].flush_ops[5].flag = TRUE; - checks[0].at_main_addr = TRUE; - checks[1].at_main_addr = TRUE; + spec[0].flush_ops[2].flag = true; + spec[0].flush_ops[5].flag = true; + checks[0].at_main_addr = true; + checks[1].at_main_addr = true; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5841,9 +5842,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5851,44 +5852,44 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5908,15 +5909,15 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) flush_flags = H5C__FLUSH_INVALIDATE_FLAG; expected_index_len = 0; expected_index_size = (size_t)0; - spec[0].expected_destroyed = TRUE; - spec[0].flush_ops[2].flag = TRUE; - spec[0].flush_ops[5].flag = TRUE; - checks[0].at_main_addr = TRUE; - checks[0].in_cache = FALSE; - checks[0].expected_destroyed = TRUE; - checks[1].at_main_addr = TRUE; - checks[1].in_cache = FALSE; - checks[1].expected_destroyed = TRUE; + spec[0].expected_destroyed = true; + spec[0].flush_ops[2].flag = true; + spec[0].flush_ops[5].flag = true; + checks[0].at_main_addr = true; + checks[0].in_cache = false; + checks[0].expected_destroyed = true; + checks[1].at_main_addr = true; + checks[1].in_cache = false; + checks[1].expected_destroyed = true; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -5956,9 +5957,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5966,26 +5967,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 11, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -5993,26 +5994,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6020,26 +6021,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6047,68 +6048,68 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ TRUE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ true, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ TRUE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ true, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; checks[2] = (struct fo_flush_entry_check){/* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 10, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; checks[3] = (struct fo_flush_entry_check){/* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 12, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -6144,9 +6145,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6154,26 +6155,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 11, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6181,26 +6182,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6208,26 +6209,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6235,26 +6236,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6262,26 +6263,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[5] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 5, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6289,68 +6290,68 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[2] = (struct fo_flush_entry_check){/* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 10, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[3] = (struct fo_flush_entry_check){/* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 12, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -6387,9 +6388,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6397,26 +6398,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 11, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6424,26 +6425,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 6, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 10, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 10, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 12, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 12, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 0, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6451,26 +6452,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 1, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6478,26 +6479,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ false, + /* expected_destroyed = */ true}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 10, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6505,26 +6506,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[5] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 5, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 20, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6532,68 +6533,68 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 0, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[2] = (struct fo_flush_entry_check){/* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 10, /* expected_size = */ VARIABLE_ENTRY_SIZE / 4, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[3] = (struct fo_flush_entry_check){/* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 12, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -6626,9 +6627,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6636,26 +6637,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 1, /* pin_type = */ {PICO_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -6663,26 +6664,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 150, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 1, /* pin_type = */ {PICO_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -6690,32 +6691,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__DIRTY, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -6745,9 +6746,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6755,26 +6756,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 50, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 1, /* pin_type = */ {PICO_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -6782,26 +6783,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ PICO_ENTRY_TYPE, /* entry_index = */ 150, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 1, /* pin_type = */ {PICO_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -6809,32 +6810,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 1, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, PICO_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__DIRTY, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ (size_t)0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -6934,9 +6935,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 200, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6944,26 +6945,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6971,26 +6972,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2300, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -6998,26 +6999,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1000, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7025,26 +7026,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2000, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7052,26 +7053,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2200, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2200, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[5] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 5, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 350, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7079,26 +7080,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 350, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 350, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[6] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 6, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 450, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7106,26 +7107,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 450, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 450, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[7] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 7, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 650, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7133,26 +7134,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 650, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 650, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[8] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 8, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 750, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7160,26 +7161,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 750, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 750, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[9] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 9, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 500, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7187,56 +7188,56 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 350, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 450, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 650, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 750, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 350, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 450, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 650, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 750, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 100, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 300, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ TRUE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[2] = (struct fo_flush_entry_check){/* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2200, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ TRUE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ true, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -7342,9 +7343,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 200, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7352,26 +7353,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7379,26 +7380,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2300, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7406,26 +7407,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 1000, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7433,26 +7434,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2000, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7460,26 +7461,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2200, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 2200, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 2300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[5] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 5, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 350, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7487,26 +7488,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 350, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 350, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[6] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 6, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 450, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7514,26 +7515,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 450, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 450, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[7] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 7, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 650, - /* insert_flag = */ TRUE, + /* insert_flag = */ true, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7541,26 +7542,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 650, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 650, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ false, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[8] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 8, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 750, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 2, /* pin_type = */ {VARIABLE_ENTRY_TYPE, VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0}, @@ -7568,26 +7569,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 750, FALSE, VARIABLE_ENTRY_SIZE / 4, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 1000, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 2000, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 750, false, VARIABLE_ENTRY_SIZE / 4, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[9] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 9, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 500, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7595,56 +7596,56 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 4, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 350, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 450, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 650, FALSE, 0, NULL}, - {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 750, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 350, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 450, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 650, false, 0, NULL}, + {FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 750, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 100, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[1] = (struct fo_flush_entry_check){/* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 300, /* expected_size = */ VARIABLE_ENTRY_SIZE, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[2] = (struct fo_flush_entry_check){/* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 2200, /* expected_size = */ VARIABLE_ENTRY_SIZE / 2, - /* in_cache = */ FALSE, - /* at_main_addr = */ TRUE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + /* in_cache = */ false, + /* at_main_addr = */ true, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -7675,9 +7676,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7685,26 +7686,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 200, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 2, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7712,26 +7713,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, FALSE, VARIABLE_ENTRY_SIZE, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 200, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, false, VARIABLE_ENTRY_SIZE, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 200, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 300, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7739,26 +7740,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 400, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 300, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 400, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 300, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 400, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7766,26 +7767,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 500, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7793,32 +7794,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 500, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 500, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ FALSE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 500, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 500, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ false}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ 0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -7851,9 +7852,9 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* entry_num = */ 0, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 100, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7861,26 +7862,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[1] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 1, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 200, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 2, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7888,26 +7889,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, FALSE, VARIABLE_ENTRY_SIZE, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 200, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 200, false, VARIABLE_ENTRY_SIZE, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 200, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[2] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 2, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 300, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7915,26 +7916,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 400, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 300, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 400, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 300, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 300, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[3] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 3, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 400, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__NO_FLAGS_SET, - /* resize_flag = */ FALSE, + /* resize_flag = */ false, /* new_size = */ 0, /* num_pins = */ 0, /* pin_type = */ {0, 0, 0, 0, 0, 0, 0, 0}, @@ -7942,26 +7943,26 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 0, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; spec[4] = (struct fo_flush_cache_test_spec){ /* entry_num = */ 4, /* entry_type = */ VARIABLE_ENTRY_TYPE, /* entry_index = */ 500, - /* insert_flag = */ FALSE, + /* insert_flag = */ false, /* flags = */ H5C__DIRTIED_FLAG, - /* resize_flag = */ TRUE, + /* resize_flag = */ true, /* new_size = */ VARIABLE_ENTRY_SIZE / 4, /* num_pins = */ 1, /* pin_type = */ {VARIABLE_ENTRY_TYPE, 0, 0, 0, 0, 0, 0, 0}, @@ -7969,32 +7970,32 @@ check_flush_cache__flush_ops(H5F_t *file_ptr) /* num_flush_ops = */ 3, /* flush_ops = */ /* op_code: type: idx: flag: size: order_ptr: */ - {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, FALSE, 0, NULL}, - {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 500, FALSE, VARIABLE_ENTRY_SIZE / 2, NULL}, - {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 500, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}, - {FLUSH_OP__NO_OP, 0, 0, FALSE, 0, NULL}}, - /* expected_deserialized = */ TRUE, - /* expected_serialized = */ TRUE, - /* expected_destroyed = */ TRUE}; + {{FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 100, false, 0, NULL}, + {FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 500, false, VARIABLE_ENTRY_SIZE / 2, NULL}, + {FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 500, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}, + {FLUSH_OP__NO_OP, 0, 0, false, 0, NULL}}, + /* expected_deserialized = */ true, + /* expected_serialized = */ true, + /* expected_destroyed = */ true}; checks[0] = (struct fo_flush_entry_check){/* entry_num = */ 0, /* entry_type = */ 0, /* entry_index = */ 0, /* expected_size = */ 0, - /* in_cache = */ FALSE, - /* at_main_addr = */ FALSE, - /* is_dirty = */ FALSE, - /* is_protected = */ FALSE, - /* is_pinned = */ FALSE, - /* expected_deserialized = */ FALSE, - /* expected_serialized = */ FALSE, - /* expected_destroyed = */ FALSE}; + /* in_cache = */ false, + /* at_main_addr = */ false, + /* is_dirty = */ false, + /* is_protected = */ false, + /* is_pinned = */ false, + /* expected_deserialized = */ false, + /* expected_serialized = */ false, + /* expected_destroyed = */ false}; check_flush_cache__flush_op_test(file_ptr, test_num, flush_flags, spec_size, spec, init_expected_index_len, init_expected_index_size, @@ -8038,21 +8039,21 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to flush op test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to flush op test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; - HDsnprintf(msg, (size_t)128, "cache not empty at beginning of flush op test #%d.", test_num); + snprintf(msg, (size_t)128, "cache not empty at beginning of flush op test #%d.", test_num); failure_mssg = msg; } else if ((spec_size < 1) || (spec == NULL)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to flush op test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "missing/bad test spec on entry to flush op test #%d.", test_num); failure_mssg = msg; } @@ -8065,8 +8066,8 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu (spec[i].num_pins > MAX_PINS) || (spec[i].num_flush_ops < 0) || (spec[i].num_flush_ops > MAX_FLUSH_OPS)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "bad data in spec[%d] on entry to flush op test #%d.", i, test_num); + pass = false; + snprintf(msg, (size_t)128, "bad data in spec[%d] on entry to flush op test #%d.", i, test_num); failure_mssg = msg; } i++; @@ -8080,8 +8081,8 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu (check[i].entry_index > max_indices[check[i].entry_type]) || (check[i].expected_size <= (size_t)0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "bad data in check[%d] on entry to flush op test #%d.", i, test_num); + pass = false; + snprintf(msg, (size_t)128, "bad data in check[%d] on entry to flush op test #%d.", i, test_num); failure_mssg = msg; } i++; @@ -8099,7 +8100,7 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu protect_entry(file_ptr, spec[i].entry_type, spec[i].entry_index); if (spec[i].resize_flag) - resize_entry(file_ptr, spec[i].entry_type, spec[i].entry_index, spec[i].new_size, TRUE); + resize_entry(file_ptr, spec[i].entry_type, spec[i].entry_index, spec[i].new_size, true); unprotect_entry(file_ptr, spec[i].entry_type, spec[i].entry_index, spec[i].flags); } @@ -8124,9 +8125,9 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu if ((cache_ptr->index_len != init_expected_index_len) || (cache_ptr->index_size != init_expected_index_size)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size before flush in flush op test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size before flush in flush op test #%d.", + test_num); failure_mssg = msg; } } @@ -8137,9 +8138,9 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu if (!pass) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in flush op test #%d.", flush_flags, - test_num); + pass = false; + snprintf(msg, (size_t)128, "flush with flags 0x%x failed in flush op test #%d.", flush_flags, + test_num); failure_mssg = msg; } } @@ -8154,8 +8155,8 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu (entry_ptr->serialized != spec[i].expected_serialized) || (entry_ptr->destroyed != spec[i].expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Bad status on entry %d after flush op test #%d.", i, test_num); + pass = false; + snprintf(msg, (size_t)128, "Bad status on entry %d after flush op test #%d.", i, test_num); failure_mssg = msg; } i++; @@ -8168,9 +8169,8 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu if (check[i].in_cache != entry_in_cache(cache_ptr, check[i].entry_type, check[i].entry_index)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Check1 failed on entry %d after flush op test #%d.", i, - test_num); + pass = false; + snprintf(msg, (size_t)128, "Check1 failed on entry %d after flush op test #%d.", i, test_num); failure_mssg = msg; } @@ -8191,9 +8191,8 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu (entry_ptr->serialized != check[i].expected_serialized) || (entry_ptr->destroyed != check[i].expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Check2 failed on entry %d after flush op test #%d.", i, - test_num); + pass = false; + snprintf(msg, (size_t)128, "Check2 failed on entry %d after flush op test #%d.", i, test_num); failure_mssg = msg; } i++; @@ -8208,9 +8207,9 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu (((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) != 0) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in flush op test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after flush in flush op test #%d.", + test_num); failure_mssg = msg; } } @@ -8222,15 +8221,15 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu if (!pass) { - HDsnprintf(msg, (size_t)128, "Flush failed on cleanup in flush op test #%d.", test_num); + snprintf(msg, (size_t)128, "Flush failed on cleanup in flush op test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->clean_index_size != 0) || (cache_ptr->dirty_index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, - "Unexpected cache len/size/cs/ds after cleanup in flush op test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size/cs/ds after cleanup in flush op test #%d.", + test_num); failure_mssg = msg; } } @@ -8243,9 +8242,9 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu entry_ptr->size = entry_sizes[spec[i].entry_type]; - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; i++; } @@ -8258,9 +8257,9 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu entry_ptr->size = entry_sizes[check[i].entry_type]; - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; i++; } @@ -8273,7 +8272,7 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu * Purpose: Verify that flush operations work as expected when an * entry is evicted. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -8296,7 +8295,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected = malloc((size_t)num_total_entries * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -8310,14 +8309,14 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected[i].entry_type = VARIABLE_ENTRY_TYPE; expected[i].entry_index = (int)(i); expected[i].size = VARIABLE_ENTRY_SIZE; - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = TRUE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; + expected[i].is_dirty = true; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type)); memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx)); @@ -8326,20 +8325,20 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } /* NOTE: special cases for particular variable entries */ expected[0].size = VARIABLE_ENTRY_SIZE / 4; - expected[0].is_pinned = TRUE; + expected[0].is_pinned = true; expected[1].size = VARIABLE_ENTRY_SIZE / 4; - expected[2].is_dirty = FALSE; + expected[2].is_dirty = false; expected[3].size = VARIABLE_ENTRY_SIZE / 4; - expected[4].is_dirty = FALSE; + expected[4].is_dirty = false; expected[5].size = VARIABLE_ENTRY_SIZE / 4; @@ -8347,23 +8346,23 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected[7].size = VARIABLE_ENTRY_SIZE / 2; - expected[8].is_dirty = FALSE; + expected[8].is_dirty = false; - expected[9].is_dirty = FALSE; - expected[9].is_pinned = TRUE; + expected[9].is_dirty = false; + expected[9].is_pinned = true; for (; i < num_variable_entries + num_monster_entries; i++) { expected[i].entry_type = MONSTER_ENTRY_TYPE; expected[i].entry_index = (int)(i - num_variable_entries); expected[i].size = MONSTER_ENTRY_SIZE; - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = TRUE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; + expected[i].is_dirty = true; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type)); memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx)); @@ -8372,21 +8371,21 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } for (; i < num_total_entries; i++) { expected[i].entry_type = LARGE_ENTRY_TYPE; expected[i].entry_index = (int)(i - num_monster_entries - num_variable_entries); expected[i].size = LARGE_ENTRY_SIZE; - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = TRUE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; + expected[i].is_dirty = true; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type)); memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx)); @@ -8395,30 +8394,30 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } assert(i == num_total_entries); - pass = TRUE; + pass = true; } if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to flush ops test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at start of flush ops eviction test."; } else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of flush op eviction test."; } else { @@ -8453,33 +8452,33 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 0); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 0, (VARIABLE_ENTRY_SIZE / 4), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 0, (VARIABLE_ENTRY_SIZE / 4), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 0, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 1); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 1, (VARIABLE_ENTRY_SIZE / 4), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 1, (VARIABLE_ENTRY_SIZE / 4), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 1, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 2); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 2, H5C__NO_FLAGS_SET); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 3); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 3, (VARIABLE_ENTRY_SIZE / 4), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 3, (VARIABLE_ENTRY_SIZE / 4), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 3, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 4); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 4, H5C__NO_FLAGS_SET); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 5); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 5, (VARIABLE_ENTRY_SIZE / 4), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 5, (VARIABLE_ENTRY_SIZE / 4), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 5, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 6); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 6, (VARIABLE_ENTRY_SIZE / 2), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 6, (VARIABLE_ENTRY_SIZE / 2), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 6, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 7); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 7, (VARIABLE_ENTRY_SIZE / 2), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 7, (VARIABLE_ENTRY_SIZE / 2), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 7, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 8); @@ -8492,7 +8491,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != (4 * (VARIABLE_ENTRY_SIZE / 4)) + (2 * (VARIABLE_ENTRY_SIZE / 2)) + (4 * VARIABLE_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 1."; } } @@ -8526,22 +8525,22 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * * (VET, 9) dirties (VET, 8) */ - add_flush_op(VARIABLE_ENTRY_TYPE, 1, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, (size_t)0, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 1, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, TRUE, + add_flush_op(VARIABLE_ENTRY_TYPE, 1, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 1, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, true, 3 * VARIABLE_ENTRY_SIZE / 4, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, (size_t)0, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, TRUE, + add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 0, true, VARIABLE_ENTRY_SIZE, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, FALSE, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 3, FLUSH_OP__MOVE, VARIABLE_ENTRY_TYPE, 0, false, (size_t)0, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 5, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, FALSE, (size_t)0, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 5, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 5, TRUE, + add_flush_op(VARIABLE_ENTRY_TYPE, 5, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 0, false, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 5, FLUSH_OP__RESIZE, VARIABLE_ENTRY_TYPE, 5, true, VARIABLE_ENTRY_SIZE / 2, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 7, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 9, FALSE, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 7, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 9, false, (size_t)0, NULL); - add_flush_op(VARIABLE_ENTRY_TYPE, 9, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 8, FALSE, (size_t)0, NULL); + add_flush_op(VARIABLE_ENTRY_TYPE, 9, FLUSH_OP__DIRTY, VARIABLE_ENTRY_TYPE, 8, false, (size_t)0, NULL); } if (pass) { @@ -8600,7 +8599,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) ((4 * VARIABLE_ENTRY_SIZE / 4) + (2 * VARIABLE_ENTRY_SIZE / 2) + (4 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (1 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 2."; } else { @@ -8650,10 +8649,10 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * Start by updating the expected table for the expected changes in entry status: */ expected[0].size = 3 * VARIABLE_ENTRY_SIZE / 4; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; - expected[2].in_cache = FALSE; - expected[2].destroyed = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; + expected[2].in_cache = false; + expected[2].destroyed = true; num_large_entries = 2; @@ -8666,7 +8665,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((1 * (3 * VARIABLE_ENTRY_SIZE / 4)) + (3 * VARIABLE_ENTRY_SIZE / 4) + (2 * VARIABLE_ENTRY_SIZE / 2) + (3 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (2 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 3."; } @@ -8712,11 +8711,11 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * Start by updating the expected table for the expected changes in entry status: */ expected[0].size = VARIABLE_ENTRY_SIZE; - expected[0].at_main_addr = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; - expected[4].in_cache = FALSE; - expected[4].destroyed = TRUE; + expected[0].at_main_addr = false; + expected[3].is_dirty = false; + expected[3].serialized = true; + expected[4].in_cache = false; + expected[4].destroyed = true; num_large_entries = 3; @@ -8730,7 +8729,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) ((3 * VARIABLE_ENTRY_SIZE / 4) + (2 * VARIABLE_ENTRY_SIZE / 2) + (3 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (3 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 4."; } @@ -8780,15 +8779,15 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ expected[5].size = VARIABLE_ENTRY_SIZE / 2; - expected[5].is_dirty = FALSE; - expected[5].serialized = TRUE; - expected[6].is_dirty = FALSE; - expected[6].serialized = TRUE; - expected[7].is_dirty = FALSE; - expected[7].serialized = TRUE; - expected[8].in_cache = FALSE; - expected[8].destroyed = TRUE; - expected[9].is_dirty = TRUE; + expected[5].is_dirty = false; + expected[5].serialized = true; + expected[6].is_dirty = false; + expected[6].serialized = true; + expected[7].is_dirty = false; + expected[7].serialized = true; + expected[8].in_cache = false; + expected[8].destroyed = true; + expected[9].is_dirty = true; num_large_entries = 5; @@ -8807,7 +8806,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) ((2 * VARIABLE_ENTRY_SIZE / 4) + (3 * VARIABLE_ENTRY_SIZE / 2) + (2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (5 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 5."; } @@ -8844,7 +8843,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) ((2 * VARIABLE_ENTRY_SIZE / 4) + (3 * VARIABLE_ENTRY_SIZE / 2) + (2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (5 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 6."; } @@ -8888,13 +8887,13 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * Start by updating the expected table for the expected changes in entry status: */ - expected[0].is_pinned = FALSE; - expected[1].in_cache = FALSE; - expected[1].destroyed = TRUE; - expected[3].in_cache = FALSE; - expected[3].destroyed = TRUE; - expected[5].in_cache = FALSE; - expected[5].destroyed = TRUE; + expected[0].is_pinned = false; + expected[1].in_cache = false; + expected[1].destroyed = true; + expected[3].in_cache = false; + expected[3].destroyed = true; + expected[5].in_cache = false; + expected[5].destroyed = true; num_large_entries = 8; @@ -8911,7 +8910,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((2 * VARIABLE_ENTRY_SIZE / 2) + (2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (8 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 7."; } @@ -8953,8 +8952,8 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * Start by updating the expected table for the expected changes in entry status: */ - expected[6].in_cache = FALSE; - expected[6].destroyed = TRUE; + expected[6].in_cache = false; + expected[6].destroyed = true; num_large_entries = 9; @@ -8970,7 +8969,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((1 * VARIABLE_ENTRY_SIZE / 2) + (2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (9 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 8."; } @@ -9014,9 +9013,9 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * Start by updating the expected table for the expected changes in entry status: */ - expected[7].in_cache = FALSE; - expected[7].destroyed = TRUE; - expected[9].is_pinned = FALSE; + expected[7].in_cache = false; + expected[7].destroyed = true; + expected[9].is_pinned = false; num_large_entries = 10; @@ -9032,7 +9031,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (10 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 9."; } @@ -9067,7 +9066,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((2 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (10 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 10."; } @@ -9175,35 +9174,35 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ base_addr = entries[VARIABLE_ENTRY_TYPE]; entry_ptr = &(base_addr[8]); - entry_ptr->deserialized = FALSE; - entry_ptr->deserialized = FALSE; - entry_ptr->destroyed = FALSE; - - expected[0].in_cache = FALSE; - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; - expected[0].destroyed = TRUE; - expected[8].in_cache = TRUE; - expected[8].is_dirty = FALSE; - expected[8].deserialized = TRUE; - expected[8].serialized = TRUE; - expected[8].destroyed = FALSE; - expected[9].in_cache = FALSE; - expected[9].is_dirty = FALSE; - expected[9].serialized = TRUE; - expected[9].destroyed = TRUE; - - expected[10].in_cache = TRUE; - expected[10].is_dirty = FALSE; - expected[10].serialized = TRUE; - expected[10].destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->deserialized = false; + entry_ptr->destroyed = false; + + expected[0].in_cache = false; + expected[0].is_dirty = false; + expected[0].serialized = true; + expected[0].destroyed = true; + expected[8].in_cache = true; + expected[8].is_dirty = false; + expected[8].deserialized = true; + expected[8].serialized = true; + expected[8].destroyed = false; + expected[9].in_cache = false; + expected[9].is_dirty = false; + expected[9].serialized = true; + expected[9].destroyed = true; + + expected[10].in_cache = true; + expected[10].is_dirty = false; + expected[10].serialized = true; + expected[10].destroyed = false; num_large_entries = 12; for (i = num_variable_entries; i < num_variable_entries + num_monster_entries + num_large_entries - 1; i++) { - expected[i].is_dirty = FALSE; - expected[i].serialized = TRUE; + expected[i].is_dirty = false; + expected[i].serialized = true; } for (i = 10; i < 12; i++) { @@ -9217,7 +9216,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((1 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (12 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 11."; } @@ -9238,7 +9237,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ base_addr = entries[VARIABLE_ENTRY_TYPE]; entry_ptr = &(base_addr[8]); - entry_ptr->serialized = FALSE; + entry_ptr->serialized = false; protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 8); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 8, H5C__DIRTIED_FLAG); @@ -9256,7 +9255,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ base_addr = entries[MONSTER_ENTRY_TYPE]; entry_ptr = &(base_addr[0]); - entry_ptr->destroyed = FALSE; + entry_ptr->destroyed = false; for (i = 1; i < num_monster_entries; i++) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -9281,25 +9280,25 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) /* update the expected array to mark all these entries dirty again. */ for (i = num_variable_entries; i < num_variable_entries + num_monster_entries + num_large_entries - 1; i++) { - expected[i].is_dirty = TRUE; + expected[i].is_dirty = true; } /* update MET 0 to set its in cache flag, and reset * its destroyed flag */ - expected[10].in_cache = TRUE; + expected[10].in_cache = true; /* pass through non variable entries will flush VET 8, and evict VET 9. * Update accordingly. */ - expected[8].in_cache = TRUE; - expected[8].is_dirty = TRUE; - expected[8].serialized = FALSE; - expected[8].destroyed = FALSE; - expected[9].in_cache = FALSE; - expected[9].is_dirty = FALSE; - expected[9].serialized = TRUE; - expected[9].destroyed = TRUE; + expected[8].in_cache = true; + expected[8].is_dirty = true; + expected[8].serialized = false; + expected[8].destroyed = false; + expected[9].in_cache = false; + expected[9].is_dirty = false; + expected[9].serialized = true; + expected[9].destroyed = true; /* verify cache size */ if ((cache_ptr->index_len != 44) || @@ -9308,7 +9307,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->index_size != ((1 * VARIABLE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE) + (12 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 12."; } @@ -9363,10 +9362,10 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) * entry status: */ - expected[8].in_cache = FALSE; - expected[8].is_dirty = FALSE; - expected[8].serialized = TRUE; - expected[8].destroyed = TRUE; + expected[8].in_cache = false; + expected[8].is_dirty = false; + expected[8].serialized = true; + expected[8].destroyed = true; num_large_entries = 14; @@ -9375,8 +9374,8 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) */ for (i = num_variable_entries; i < num_variable_entries + num_monster_entries + num_large_entries - 1; i++) { - expected[i].is_dirty = FALSE; - expected[i].serialized = TRUE; + expected[i].is_dirty = false; + expected[i].serialized = true; } for (i = 12; i < 14; i++) { @@ -9390,7 +9389,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (2 * 1024 * 1024) - (6 * VARIABLE_ENTRY_SIZE) + (13 * LARGE_ENTRY_SIZE)) || (cache_ptr->index_size != ((31 * MONSTER_ENTRY_SIZE) + (14 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in flush op eviction test 13."; } @@ -9418,7 +9417,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after cleanup of flush op eviction test"; } } @@ -9451,7 +9450,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[VARIABLE_ENTRY_TYPE] != 1) || (cache_ptr->cache_flush_size_changes[VARIABLE_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected variable size entry stats in check_flush_cache__flush_op_eviction_test()."; } @@ -9476,7 +9475,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[LARGE_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[LARGE_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected large entry stats in check_flush_cache__flush_op_eviction_test()."; } } @@ -9500,7 +9499,7 @@ check_flush_cache__flush_op_eviction_test(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry stats in check_flush_cache__flush_op_eviction_test()."; } } @@ -9533,12 +9532,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to single entry case."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at beginning of single entry case."; } @@ -9549,12 +9548,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 1, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9564,12 +9563,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 2, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -9579,12 +9578,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 3, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9594,12 +9593,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 4, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9609,12 +9608,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 5, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9624,12 +9623,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 6, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -9639,12 +9638,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 7, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9654,12 +9653,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 8, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9669,12 +9668,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 9, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9684,12 +9683,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 10, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9699,12 +9698,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 11, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9714,12 +9713,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 12, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9729,12 +9728,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 13, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9744,12 +9743,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 14, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -9759,13 +9758,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 15, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9775,13 +9774,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 16, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9791,12 +9790,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 17, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9806,12 +9805,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 18, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -9821,12 +9820,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 19, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9836,12 +9835,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 20, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9851,12 +9850,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 21, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9866,12 +9865,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 22, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -9881,12 +9880,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 23, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9896,12 +9895,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 24, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -9911,12 +9910,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 25, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9926,12 +9925,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 26, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9941,12 +9940,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 27, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9956,12 +9955,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 28, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -9971,12 +9970,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 29, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -9986,12 +9985,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 30, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10001,13 +10000,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 31, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10017,13 +10016,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 32, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ FALSE, + /* insert_flag */ false, /* flags */ H5C__DIRTIED_FLAG | H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ TRUE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ true, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10033,12 +10032,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 33, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10048,12 +10047,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 34, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10063,12 +10062,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 35, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10078,12 +10077,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 36, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10093,12 +10092,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 37, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10108,12 +10107,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 38, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10123,12 +10122,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 39, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10138,12 +10137,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 40, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10153,12 +10152,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 41, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10168,12 +10167,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 42, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10183,12 +10182,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 43, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10198,12 +10197,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 44, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10213,12 +10212,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 45, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10228,12 +10227,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 46, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10243,13 +10242,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 47, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10259,13 +10258,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 48, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__NO_FLAGS_SET, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10275,12 +10274,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 49, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10290,12 +10289,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 50, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__NO_FLAGS_SET, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10305,12 +10304,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 51, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10320,12 +10319,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 52, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10335,12 +10334,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 53, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10350,12 +10349,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 54, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10365,12 +10364,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 55, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10380,12 +10379,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 56, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ false); } if (pass) { @@ -10395,12 +10394,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 57, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10410,12 +10409,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 58, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10425,12 +10424,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 59, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10440,12 +10439,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 60, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ FALSE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ false); } if (pass) { @@ -10455,12 +10454,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 61, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10470,12 +10469,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 62, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_MARKED_ENTRIES_FLAG | H5C__FLUSH_INVALIDATE_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ TRUE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ true, + /* expected_destroyed */ true); } if (pass) { @@ -10485,13 +10484,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 63, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } if (pass) { @@ -10501,13 +10500,13 @@ check_flush_cache__single_entry(H5F_t *file_ptr) /* test_num */ 64, /* entry_type */ PICO_ENTRY_TYPE, /* entry_idx */ 0, - /* insert_flag */ TRUE, + /* insert_flag */ true, /* flags */ H5C__SET_FLUSH_MARKER_FLAG, /* flush_flags */ H5C__FLUSH_INVALIDATE_FLAG | H5C__FLUSH_CLEAR_ONLY_FLAG | H5C__FLUSH_MARKED_ENTRIES_FLAG, - /* expected_deserialized */ FALSE, - /* expected_serialized */ FALSE, - /* expected_destroyed */ TRUE); + /* expected_deserialized */ false, + /* expected_serialized */ false, + /* expected_destroyed */ true); } /* Now run single entry tests for pinned entries. Test all combinations @@ -10539,12 +10538,12 @@ check_flush_cache__single_entry(H5F_t *file_ptr) * * In addition to simply checking to see if the test case runs, * we also check to see if the desired operations take place on the - * cache entry. Thus expected_serialized is set to TRUE if we + * cache entry. Thus expected_serialized is set to true if we * we expect the entry to be flushed, and expected_destroyed is set - * to TRUE if we expect the entry to be destroyed. + * to true if we expect the entry to be destroyed. * * In this test, we are working with pinned entries which can't be - * evicted, so expected_destroyed is always FALSE. We could pull it + * evicted, so expected_destroyed is always false. We could pull it * from the table, but it is a hold over from the code this test * was adapted from, and it doesn't do any particular harm. * @@ -10577,7 +10576,7 @@ check_flush_cache__single_entry(H5F_t *file_ptr) spec = malloc(256 * sizeof(struct pinned_single_entry_test_spec)); if (spec == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocated pinned single entry test spec array"; } @@ -10585,21 +10584,21 @@ check_flush_cache__single_entry(H5F_t *file_ptr) int test_num; int entry_type; int entry_idx; - hbool_t dirty_flag; - hbool_t mark_dirty; - hbool_t pop_mark_dirty_prot; - hbool_t pop_mark_dirty_pinned; - hbool_t unprotect_unpin; + bool dirty_flag; + bool mark_dirty; + bool pop_mark_dirty_prot; + bool pop_mark_dirty_pinned; + bool unprotect_unpin; unsigned int flags; unsigned int flush_flags; - hbool_t expected_serialized; - hbool_t expected_destroyed; + bool expected_serialized; + bool expected_destroyed; test_num = (int)(i + 1); entry_type = PICO_ENTRY_TYPE; entry_idx = 0; - /* Generate alternating sequences of TRUE/FALSE */ + /* Generate alternating sequences of true/false */ dirty_flag = (i / 16) % 2; mark_dirty = (i / 8) % 2; pop_mark_dirty_prot = (i / 4) % 2; @@ -10637,25 +10636,25 @@ check_flush_cache__single_entry(H5F_t *file_ptr) break; } - expected_serialized = FALSE; + expected_serialized = false; if (0 == (flush_flags & H5C__FLUSH_CLEAR_ONLY_FLAG)) { if (flush_flags & H5C__FLUSH_MARKED_ENTRIES_FLAG) { if (flags & H5C__SET_FLUSH_MARKER_FLAG) { if (mark_dirty && pop_mark_dirty_prot) { - expected_serialized = TRUE; + expected_serialized = true; } else if (dirty_flag || pop_mark_dirty_prot) { - expected_serialized = TRUE; + expected_serialized = true; } } } else { if (dirty_flag || mark_dirty || pop_mark_dirty_prot || pop_mark_dirty_pinned) - expected_serialized = TRUE; + expected_serialized = true; } } - expected_destroyed = FALSE; + expected_destroyed = false; spec[i] = (struct pinned_single_entry_test_spec){ test_num, @@ -10709,9 +10708,9 @@ check_flush_cache__single_entry(H5F_t *file_ptr) static void check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_type, int entry_idx, - hbool_t insert_flag, unsigned int flags, unsigned int flush_flags, - hbool_t expected_deserialized, hbool_t expected_serialized, - hbool_t expected_destroyed) + bool insert_flag, unsigned int flags, unsigned int flush_flags, + bool expected_deserialized, bool expected_serialized, + bool expected_destroyed) { H5C_t *cache_ptr = file_ptr->shared->cache; static char msg[128]; @@ -10720,21 +10719,21 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to single entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache not empty at beginning of single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache not empty at beginning of single entry test #%d.", test_num); failure_mssg = msg; } else if ((entry_type < 0) || (entry_type >= NUMBER_OF_ENTRY_TYPES) || (entry_idx < 0) || (entry_idx > max_indices[entry_type])) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Bad parameters on entry to single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Bad parameters on entry to single entry test #%d.", test_num); failure_mssg = msg; } @@ -10761,8 +10760,8 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty if (!pass) { /* construct and set actual failure message */ - HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in single entry test #%d.", - flush_flags, test_num); + snprintf(msg, (size_t)128, "flush with flags 0x%x failed in single entry test #%d.", flush_flags, + test_num); failure_mssg = msg; } @@ -10770,9 +10769,9 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty (entry_ptr->serialized != expected_serialized) || (entry_ptr->destroyed != expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry status after flush in single entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry status after flush in single entry test #%d.", + test_num); failure_mssg = msg; } else if ((((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) == 0) && @@ -10780,9 +10779,9 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty (((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) != 0) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in single entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after flush in single entry test #%d.", + test_num); failure_mssg = msg; } } @@ -10794,21 +10793,21 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty if (!pass) { /* construct and set actual failure message */ - HDsnprintf(msg, (size_t)128, "Flush failed on cleanup in single entry test #%d.", test_num); + snprintf(msg, (size_t)128, "Flush failed on cleanup in single entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in single entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in single entry test #%d.", + test_num); failure_mssg = msg; } else { - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; } } @@ -10826,36 +10825,34 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty static void check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int entry_type, int entry_idx, - hbool_t unprot_dirty_flag, hbool_t mark_dirty, - hbool_t pop_mark_dirty_prot, hbool_t pop_mark_dirty_pinned, - hbool_t unprotect_unpin, unsigned int flags, - unsigned int flush_flags, hbool_t expected_serialized, - hbool_t expected_destroyed) + bool unprot_dirty_flag, bool mark_dirty, bool pop_mark_dirty_prot, + bool pop_mark_dirty_pinned, bool unprotect_unpin, + unsigned int flags, unsigned int flush_flags, + bool expected_serialized, bool expected_destroyed) { H5C_t *cache_ptr = file_ptr->shared->cache; static char msg[128]; - hbool_t expected_deserialized = TRUE; + bool expected_deserialized = true; test_entry_t *base_addr; test_entry_t *entry_ptr = NULL; if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to pinned single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to pinned single entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache not empty at beginning of pinned single entry test #%d.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "cache not empty at beginning of pinned single entry test #%d.", test_num); failure_mssg = msg; } else if ((entry_type < 0) || (entry_type >= NUMBER_OF_ENTRY_TYPES) || (entry_idx < 0) || (entry_idx > max_indices[entry_type])) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Bad parameters on entry to pinned single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Bad parameters on entry to pinned single entry test #%d.", test_num); failure_mssg = msg; } @@ -10892,17 +10889,17 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e if (!pass) { /* construct and set the correct failure message */ - HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in pinned single entry test #%d.", - flush_flags, test_num); + snprintf(msg, (size_t)128, "flush with flags 0x%x failed in pinned single entry test #%d.", + flush_flags, test_num); failure_mssg = msg; } else if ((entry_ptr->deserialized != expected_deserialized) || (entry_ptr->serialized != expected_serialized) || (entry_ptr->destroyed != expected_destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, - "Unexpected entry status after flush in pinned single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry status after flush in pinned single entry test #%d.", + test_num); failure_mssg = msg; } else if ((((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) == 0) && @@ -10910,9 +10907,9 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e (((flush_flags & H5C__FLUSH_INVALIDATE_FLAG) != 0) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, - "Unexpected cache len/size after flush in pinned single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, + "Unexpected cache len/size after flush in pinned single entry test #%d.", test_num); failure_mssg = msg; } } @@ -10940,22 +10937,21 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e if (!pass) { - HDsnprintf(msg, (size_t)128, "Flush failed on cleanup in pinned single entry test #%d.", - test_num); + snprintf(msg, (size_t)128, "Flush failed on cleanup in pinned single entry test #%d.", test_num); failure_mssg = msg; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, - "Unexpected cache len/size after cleanup in pinned single entry test #%d.", test_num); + pass = false; + snprintf(msg, (size_t)128, + "Unexpected cache len/size after cleanup in pinned single entry test #%d.", test_num); failure_mssg = msg; } else { - entry_ptr->deserialized = FALSE; - entry_ptr->serialized = FALSE; - entry_ptr->destroyed = FALSE; + entry_ptr->deserialized = false; + entry_ptr->serialized = false; + entry_ptr->destroyed = false; } } @@ -10976,10 +10972,10 @@ check_get_entry_status(unsigned paged) { static char msg[128]; herr_t result; - hbool_t in_cache; - hbool_t is_dirty; - hbool_t is_protected; - hbool_t is_pinned; + bool in_cache; + bool is_dirty; + bool is_protected; + bool is_pinned; size_t entry_size; H5F_t *file_ptr = NULL; test_entry_t *base_addr = NULL; @@ -10990,7 +10986,7 @@ check_get_entry_status(unsigned paged) else TESTING("H5C_get_entry_status() functionality"); - pass = TRUE; + pass = true; if (pass) { @@ -11000,7 +10996,7 @@ check_get_entry_status(unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "file_ptr NULL from setup_cache."; } else { @@ -11021,14 +11017,14 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 1."); failure_mssg = msg; } } @@ -11047,14 +11043,14 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); failure_mssg = msg; } else if (!in_cache || is_dirty || is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 2."); failure_mssg = msg; } } @@ -11071,14 +11067,14 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); failure_mssg = msg; } else if (!in_cache || is_dirty || !is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 3."); failure_mssg = msg; } } @@ -11095,14 +11091,14 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); failure_mssg = msg; } else if (!in_cache || is_dirty || is_protected || !is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 4."); failure_mssg = msg; } } @@ -11119,14 +11115,14 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || !is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 5."); failure_mssg = msg; } } @@ -11143,21 +11139,21 @@ check_get_entry_status(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 6."); failure_mssg = msg; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -11191,10 +11187,10 @@ check_expunge_entry(unsigned paged) { static char msg[128]; herr_t result; - hbool_t in_cache; - hbool_t is_dirty; - hbool_t is_protected; - hbool_t is_pinned; + bool in_cache; + bool is_dirty; + bool is_protected; + bool is_pinned; size_t entry_size; H5F_t *file_ptr = NULL; test_entry_t *base_addr; @@ -11205,7 +11201,7 @@ check_expunge_entry(unsigned paged) else TESTING("H5C_expunge_entry() functionality"); - pass = TRUE; + pass = true; if (pass) { @@ -11228,20 +11224,20 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 1."); failure_mssg = msg; } else if ((entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 1."); failure_mssg = msg; } } @@ -11264,20 +11260,20 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); failure_mssg = msg; } else if (!in_cache || is_dirty || is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 2."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 2."); failure_mssg = msg; } } @@ -11302,20 +11298,20 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 3."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 3."); failure_mssg = msg; } } @@ -11338,20 +11334,20 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 4."); failure_mssg = msg; } else if ((entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 4."); failure_mssg = msg; } } @@ -11374,20 +11370,20 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 5."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 5."); failure_mssg = msg; } } @@ -11412,27 +11408,27 @@ check_expunge_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 6."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 6."); failure_mssg = msg; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -11475,7 +11471,7 @@ check_multiple_read_protect(unsigned paged) else TESTING("multiple read only protects on a single entry"); - pass = TRUE; + pass = true; /* allocate a cache. Should succeed. * @@ -11512,7 +11508,7 @@ check_multiple_read_protect(unsigned paged) if ((entry_ptr->header.is_protected) || (entry_ptr->header.is_read_only) || (entry_ptr->header.ro_ref_count != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 1.\n"; } } @@ -11521,7 +11517,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 0) || (cache_ptr->max_read_protects[0] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 1.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11532,7 +11528,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 1)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 2.\n"; } } @@ -11541,7 +11537,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 1) || (cache_ptr->max_read_protects[0] != 1)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 2.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11552,7 +11548,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 3.\n"; } } @@ -11561,7 +11557,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 2) || (cache_ptr->max_read_protects[0] != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 3.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11572,7 +11568,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 1)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 4.\n"; } } @@ -11581,7 +11577,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 2) || (cache_ptr->max_read_protects[0] != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 4.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11592,7 +11588,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 5.\n"; } } @@ -11601,7 +11597,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 3) || (cache_ptr->max_read_protects[0] != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 5.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11612,7 +11608,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 6.\n"; } } @@ -11621,7 +11617,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 6.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11632,7 +11628,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 2)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 7.\n"; } } @@ -11641,7 +11637,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 7.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11652,7 +11648,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (!(entry_ptr->header.is_read_only)) || (entry_ptr->header.ro_ref_count != 1)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 8.\n"; } } @@ -11661,7 +11657,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 8.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11672,7 +11668,7 @@ check_multiple_read_protect(unsigned paged) if ((entry_ptr->header.is_protected) || (entry_ptr->header.is_read_only) || (entry_ptr->header.ro_ref_count != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 9.\n"; } } @@ -11681,7 +11677,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 0) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 9.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11696,7 +11692,7 @@ check_multiple_read_protect(unsigned paged) if ((!(entry_ptr->header.is_protected)) || (entry_ptr->header.is_read_only) || (entry_ptr->header.ro_ref_count != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 10.\n"; } } @@ -11705,7 +11701,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 1) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 10.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11716,7 +11712,7 @@ check_multiple_read_protect(unsigned paged) if ((entry_ptr->header.is_protected) || (entry_ptr->header.is_read_only) || (entry_ptr->header.ro_ref_count != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected ro protected status 11.\n"; } } @@ -11725,7 +11721,7 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 1) || (cache_ptr->read_protects[0] != 4) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 11.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ @@ -11771,18 +11767,18 @@ check_multiple_read_protect(unsigned paged) if (H5C_pin_protected_entry((void *)entry_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "H5C_pin_protected_entry() failed.\n"; } else if (!(entry_ptr->header.is_pinned)) { - pass = FALSE; + pass = false; failure_mssg = "entry (0,4) not pinned.\n"; } else { /* keep test bed sanity checks happy */ - entry_ptr->is_pinned = TRUE; + entry_ptr->is_pinned = true; } } @@ -11793,7 +11789,7 @@ check_multiple_read_protect(unsigned paged) if (pass && (entry_ptr->header.is_pinned)) { - pass = FALSE; + pass = false; failure_mssg = "entry (0,4) still pinned.\n"; } @@ -11809,14 +11805,14 @@ check_multiple_read_protect(unsigned paged) if ((cache_ptr->write_protects[0] != 5) || (cache_ptr->read_protects[0] != 9) || (cache_ptr->max_read_protects[0] != 3)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected protect stats 11.\n"; } #endif /* H5C_COLLECT_CACHE_STATS */ if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -11855,20 +11851,20 @@ check_move_entry(unsigned paged) struct move_entry_test_spec test_specs[4] = { {/* int entry_type = */ PICO_ENTRY_TYPE, /* int entry_index = */ 10, - /* hbool_t is_pinned = */ FALSE, - /* hbool_t is_protected = */ FALSE}, + /* bool is_pinned = */ false, + /* bool is_protected = */ false}, {/* int entry_type = */ PICO_ENTRY_TYPE, /* int entry_index = */ 20, - /* hbool_t is_pinned = */ TRUE, - /* hbool_t is_protected = */ FALSE}, + /* bool is_pinned = */ true, + /* bool is_protected = */ false}, {/* int entry_type = */ PICO_ENTRY_TYPE, /* int entry_index = */ 30, - /* hbool_t is_pinned = */ FALSE, - /* hbool_t is_protected = */ TRUE}, + /* bool is_pinned = */ false, + /* bool is_protected = */ true}, {/* int entry_type = */ PICO_ENTRY_TYPE, /* int entry_index = */ 40, - /* hbool_t is_pinned = */ TRUE, - /* hbool_t is_protected = */ TRUE}, + /* bool is_pinned = */ true, + /* bool is_protected = */ true}, }; if (paged) @@ -11876,7 +11872,7 @@ check_move_entry(unsigned paged) else TESTING("H5C_move_entry() functionality"); - pass = TRUE; + pass = true; /* allocate a cache, load entries into it, and then move * them. To the extent possible, verify that the desired @@ -11917,7 +11913,7 @@ check_move_entry(unsigned paged) } if (pass) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -11935,7 +11931,7 @@ check_move_entry(unsigned paged) * * Purpose: Run a move entry test. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -11954,14 +11950,14 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (cache_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "cache_ptr NULL on entry to move test #%u.", test_num); + pass = false; + snprintf(msg, (size_t)128, "cache_ptr NULL on entry to move test #%u.", test_num); failure_mssg = msg; } else if (spec_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "spec_ptr NULL on entry to move test #%u.", test_num); + pass = false; + snprintf(msg, (size_t)128, "spec_ptr NULL on entry to move test #%u.", test_num); failure_mssg = msg; } @@ -11974,8 +11970,8 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry ((entry_ptr->cache_ptr != cache_ptr) && (entry_ptr->cache_ptr != NULL)) || (!(entry_ptr->at_main_addr)) || (entry_ptr->addr != entry_ptr->main_addr)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "bad entry_ptr in move test #%u.", test_num); + pass = false; + snprintf(msg, (size_t)128, "bad entry_ptr in move test #%u.", test_num); failure_mssg = msg; } } @@ -11990,7 +11986,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (!spec_ptr->is_protected) unprotect_entry(file_ptr, spec_ptr->entry_type, spec_ptr->entry_index, flags); - move_entry(cache_ptr, spec_ptr->entry_type, spec_ptr->entry_index, FALSE); + move_entry(cache_ptr, spec_ptr->entry_type, spec_ptr->entry_index, false); } if (pass) { @@ -12004,8 +12000,8 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (!(entry_ptr->header.is_pinned)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Pinned entry not pinned after move in test #%u.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Pinned entry not pinned after move in test #%u.", test_num); failure_mssg = msg; } @@ -12021,9 +12017,9 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (test_ptr == NULL) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Pinned entry not in pel after move in test #%u.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Pinned entry not in pel after move in test #%u.", + test_num); failure_mssg = msg; } } /* end else */ @@ -12035,8 +12031,8 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (entry_ptr->header.is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unpinned entry pinned after move in test #%u.", test_num); + pass = false; + snprintf(msg, (size_t)128, "Unpinned entry pinned after move in test #%u.", test_num); failure_mssg = msg; } @@ -12045,9 +12041,8 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry else { if ((entry_ptr->header.prev != NULL) || (cache_ptr->LRU_head_ptr != (H5C_cache_entry_t *)entry_ptr)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Entry not at head of LRU after move in test #%u.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Entry not at head of LRU after move in test #%u.", test_num); failure_mssg = msg; } } /* end else */ @@ -12056,9 +12051,8 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry if (spec_ptr->is_protected) { if (!(entry_ptr->header.is_protected)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Protected entry not protected after move in test #%u.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Protected entry not protected after move in test #%u.", test_num); failure_mssg = msg; } @@ -12068,16 +12062,16 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry else { if (entry_ptr->header.is_protected) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unprotected entry not unprotected after move in test #%u.", - test_num); + pass = false; + snprintf(msg, (size_t)128, "Unprotected entry not unprotected after move in test #%u.", + test_num); failure_mssg = msg; } } /* end else */ } /* put the entry back where it started from */ - move_entry(cache_ptr, spec_ptr->entry_type, spec_ptr->entry_index, TRUE); + move_entry(cache_ptr, spec_ptr->entry_type, spec_ptr->entry_index, true); } /* check_move_entry__run_test() */ @@ -12105,7 +12099,7 @@ check_pin_protected_entry(unsigned paged) else TESTING("H5C_pin_protected_entry() functionality"); - pass = TRUE; + pass = true; /* Create a cache, protect an entry, and then use H5C_pin_protected_entry() * to pin it. Verify that the entry is in fact pined. Unprotect the entry @@ -12120,7 +12114,7 @@ check_pin_protected_entry(unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "file_ptr NULL from setup_cache."; } } @@ -12139,19 +12133,19 @@ check_pin_protected_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_pin_protected_entry() reports failure."); + pass = false; + snprintf(msg, (size_t)128, "H5C_pin_protected_entry() reports failure."); failure_mssg = msg; } else if (!(entry_ptr->header.is_pinned)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "entry not pinned when it should be."); + pass = false; + snprintf(msg, (size_t)128, "entry not pinned when it should be."); failure_mssg = msg; } else { - entry_ptr->is_pinned = TRUE; + entry_ptr->is_pinned = true; } } @@ -12159,7 +12153,7 @@ check_pin_protected_entry(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -12194,10 +12188,10 @@ check_resize_entry(unsigned paged) { static char msg[128]; herr_t result; - hbool_t in_cache; - hbool_t is_dirty; - hbool_t is_protected; - hbool_t is_pinned; + bool in_cache; + bool is_dirty; + bool is_protected; + bool is_pinned; size_t entry_size; size_t reported_entry_size; H5F_t *file_ptr = NULL; @@ -12239,7 +12233,7 @@ check_resize_entry(unsigned paged) * the cache. */ - pass = TRUE; + pass = true; /* tests with only one entry in the cache: */ @@ -12251,7 +12245,7 @@ check_resize_entry(unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "file_ptr NULL from setup_cache."; } else { @@ -12268,8 +12262,8 @@ check_resize_entry(unsigned paged) if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 1."); failure_mssg = msg; } } @@ -12284,8 +12278,8 @@ check_resize_entry(unsigned paged) if ((cache_ptr->index_len != 1) || (cache_ptr->index_size != LARGE_ENTRY_SIZE) || (cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 2."); failure_mssg = msg; } } @@ -12297,20 +12291,20 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); failure_mssg = msg; } else if (!in_cache || is_dirty || !is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 1."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 1."); failure_mssg = msg; } } @@ -12321,8 +12315,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); + pass = false; + snprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); failure_mssg = msg; } else { @@ -12331,8 +12325,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_unprotect() reports failure 1."); failure_mssg = msg; } else { @@ -12340,8 +12334,8 @@ check_resize_entry(unsigned paged) /* tidy up so we play nice with the standard protect / unprotect * calls. */ - entry_ptr->is_protected = FALSE; - entry_ptr->is_dirty = TRUE; + entry_ptr->is_protected = false; + entry_ptr->is_dirty = true; entry_ptr->size = LARGE_ENTRY_SIZE / 2; } } @@ -12353,8 +12347,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE / 2))))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 3."); failure_mssg = msg; } } @@ -12366,21 +12360,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned || (reported_entry_size != (LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 2."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 2."); failure_mssg = msg; } } @@ -12396,8 +12390,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); + pass = false; + snprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); failure_mssg = msg; } else { @@ -12406,8 +12400,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_unprotect() reports failure 2."); failure_mssg = msg; } else { @@ -12415,8 +12409,8 @@ check_resize_entry(unsigned paged) /* tidy up so we play nice with the standard protect / unprotect * calls. */ - entry_ptr->is_protected = FALSE; - entry_ptr->is_dirty = TRUE; + entry_ptr->is_protected = false; + entry_ptr->is_dirty = true; entry_ptr->size = LARGE_ENTRY_SIZE; } } @@ -12428,8 +12422,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 4."); failure_mssg = msg; } } @@ -12441,21 +12435,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned || (reported_entry_size != LARGE_ENTRY_SIZE)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 3."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 3."); failure_mssg = msg; } } @@ -12473,8 +12467,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 1."); failure_mssg = msg; } } @@ -12485,8 +12479,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE / 4))))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 5."); failure_mssg = msg; } } @@ -12498,21 +12492,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || !is_pinned || (reported_entry_size != (LARGE_ENTRY_SIZE / 4))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 4."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 4."); failure_mssg = msg; } } @@ -12523,8 +12517,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 2."); failure_mssg = msg; } } @@ -12535,8 +12529,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 6."); failure_mssg = msg; } } @@ -12548,21 +12542,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || !is_pinned || (reported_entry_size != LARGE_ENTRY_SIZE)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 5."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 5."); failure_mssg = msg; } } @@ -12581,20 +12575,20 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 6."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 6."); failure_mssg = msg; } } @@ -12604,8 +12598,8 @@ check_resize_entry(unsigned paged) if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 7."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 7."); failure_mssg = msg; } } @@ -12617,8 +12611,8 @@ check_resize_entry(unsigned paged) if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 8."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 8."); failure_mssg = msg; } @@ -12645,8 +12639,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 9."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 9."); failure_mssg = msg; } } @@ -12662,8 +12656,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 10."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 10."); failure_mssg = msg; } } @@ -12675,20 +12669,20 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 7."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 7."); failure_mssg = msg; } else if (!in_cache || is_dirty || !is_protected || is_pinned) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 7."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 7."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 7."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 7."); failure_mssg = msg; } } @@ -12699,8 +12693,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); + pass = false; + snprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); failure_mssg = msg; } else { @@ -12709,8 +12703,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_unprotect() reports failure 3."); failure_mssg = msg; } else { @@ -12718,8 +12712,8 @@ check_resize_entry(unsigned paged) /* tidy up so we play nice with the standard protect / unprotect * calls. */ - entry_ptr->is_protected = FALSE; - entry_ptr->is_dirty = TRUE; + entry_ptr->is_protected = false; + entry_ptr->is_dirty = true; entry_ptr->size = LARGE_ENTRY_SIZE / 2; } } @@ -12733,8 +12727,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE + (LARGE_ENTRY_SIZE / 2)))))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 11."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 11."); failure_mssg = msg; } } @@ -12746,21 +12740,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 8."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 8."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned || (reported_entry_size != (LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 8."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 8."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 8."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 8."); failure_mssg = msg; } } @@ -12776,8 +12770,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); + pass = false; + snprintf(msg, (size_t)128, "error(s) in H5C_resize_entry()."); failure_mssg = msg; } else { @@ -12786,8 +12780,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_unprotect() reports failure 4."); failure_mssg = msg; } else { @@ -12795,8 +12789,8 @@ check_resize_entry(unsigned paged) /* tidy up so we play nice with the standard protect / unprotect * calls. */ - entry_ptr->is_protected = FALSE; - entry_ptr->is_dirty = TRUE; + entry_ptr->is_protected = false; + entry_ptr->is_dirty = true; entry_ptr->size = LARGE_ENTRY_SIZE; } } @@ -12808,8 +12802,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 12."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 12."); failure_mssg = msg; } } @@ -12821,21 +12815,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 9."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 9."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || is_pinned || (reported_entry_size != LARGE_ENTRY_SIZE)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 9."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 9."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 9."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 9."); failure_mssg = msg; } } @@ -12853,8 +12847,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 3."); failure_mssg = msg; } } @@ -12867,8 +12861,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE + (LARGE_ENTRY_SIZE / 4)))))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 13."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 13."); failure_mssg = msg; } } @@ -12880,21 +12874,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 10."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 10."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || !is_pinned || (reported_entry_size != (LARGE_ENTRY_SIZE / 4))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 10."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 10."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 10."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 10."); failure_mssg = msg; } } @@ -12905,8 +12899,8 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 4."); failure_mssg = msg; } } @@ -12917,8 +12911,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != (2 * LARGE_ENTRY_SIZE))))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 14."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 14."); failure_mssg = msg; } } @@ -12930,21 +12924,21 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 11."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 11."); failure_mssg = msg; } else if (!in_cache || !is_dirty || is_protected || !is_pinned || (reported_entry_size != LARGE_ENTRY_SIZE)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 11."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 11."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 11."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 11."); failure_mssg = msg; } } @@ -12963,20 +12957,20 @@ check_resize_entry(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 12."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 12."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 12."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 12."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 12."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 12."); failure_mssg = msg; } } @@ -12987,8 +12981,8 @@ check_resize_entry(unsigned paged) ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 15."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 15."); failure_mssg = msg; } } @@ -13010,15 +13004,15 @@ check_resize_entry(unsigned paged) if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0)))) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 16."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 16."); failure_mssg = msg; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -13053,9 +13047,9 @@ check_evictions_enabled(unsigned paged) { static char msg[128]; herr_t result; - hbool_t show_progress = FALSE; - hbool_t evictions_enabled; - hbool_t in_cache; + bool show_progress = false; + bool evictions_enabled; + bool in_cache; int i; int mile_stone = 1; H5F_t *file_ptr = NULL; @@ -13103,7 +13097,7 @@ check_evictions_enabled(unsigned paged) * Now flush and discard the cache -- should succeed. */ - pass = TRUE; + pass = true; if (show_progress) /* 1 */ fprintf(stdout, "%s() - %0d -- pass = %d\n", __func__, mile_stone++, (int)pass); @@ -13117,7 +13111,7 @@ check_evictions_enabled(unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "file_ptr NULL from setup_cache."; } else { @@ -13135,10 +13129,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 1."); failure_mssg = msg; } } @@ -13151,10 +13145,10 @@ check_evictions_enabled(unsigned paged) result = H5C_get_evictions_enabled(cache_ptr, &evictions_enabled); - if ((result != SUCCEED) || (evictions_enabled != TRUE)) { + if ((result != SUCCEED) || (evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected evictions enabled 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected evictions enabled 1."); failure_mssg = msg; } } @@ -13179,10 +13173,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 2."); failure_mssg = msg; } } @@ -13205,10 +13199,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 0) || (cache_ptr->slist_size != 0))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 3."); failure_mssg = msg; } } @@ -13225,20 +13219,20 @@ check_evictions_enabled(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 1."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 1."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 1."); failure_mssg = msg; } } @@ -13261,10 +13255,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 4."); failure_mssg = msg; } } @@ -13281,20 +13275,20 @@ check_evictions_enabled(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 2."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 2."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 2."); failure_mssg = msg; } } @@ -13305,12 +13299,12 @@ check_evictions_enabled(unsigned paged) /* disable evictions */ if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result != SUCCEED) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "can't disable evictions 1."); + pass = false; + snprintf(msg, (size_t)128, "can't disable evictions 1."); failure_mssg = msg; } } @@ -13324,10 +13318,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != FALSE)) { + (cache_ptr->evictions_enabled != false)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 5."); failure_mssg = msg; } } @@ -13351,10 +13345,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 17) || (cache_ptr->index_size != 17 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != FALSE)) { + (cache_ptr->evictions_enabled != false)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 6."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 6."); failure_mssg = msg; } } @@ -13377,10 +13371,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 18) || (cache_ptr->index_size != 18 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != FALSE)) { + (cache_ptr->evictions_enabled != false)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 7."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 7."); failure_mssg = msg; } } @@ -13391,12 +13385,12 @@ check_evictions_enabled(unsigned paged) /* re-enable evictions */ if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result != SUCCEED) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "can't enable evictions 1."); + pass = false; + snprintf(msg, (size_t)128, "can't enable evictions 1."); failure_mssg = msg; } } @@ -13420,10 +13414,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 18) || (cache_ptr->index_size != 18 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 8."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 8."); failure_mssg = msg; } } @@ -13450,10 +13444,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 9."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 9."); failure_mssg = msg; } } @@ -13470,20 +13464,20 @@ check_evictions_enabled(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 3."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 3."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 3."); failure_mssg = msg; } } @@ -13500,20 +13494,20 @@ check_evictions_enabled(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 4."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 4."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 4."); failure_mssg = msg; } } @@ -13524,12 +13518,12 @@ check_evictions_enabled(unsigned paged) /* disable evictions again */ if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result != SUCCEED) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "can't disable evictions 2."); + pass = false; + snprintf(msg, (size_t)128, "can't disable evictions 2."); failure_mssg = msg; } } @@ -13555,10 +13549,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 17) || (cache_ptr->index_size != 17 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != FALSE)) { + (cache_ptr->evictions_enabled != false)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 10."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 10."); failure_mssg = msg; } } @@ -13569,12 +13563,12 @@ check_evictions_enabled(unsigned paged) /* re-enable evictions again */ if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result != SUCCEED) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "can't enable evictions 2."); + pass = false; + snprintf(msg, (size_t)128, "can't enable evictions 2."); failure_mssg = msg; } } @@ -13597,10 +13591,10 @@ check_evictions_enabled(unsigned paged) if ((cache_ptr->index_len != 16) || (cache_ptr->index_size != 16 * MONSTER_ENTRY_SIZE) || ((cache_ptr->slist_enabled) && ((cache_ptr->slist_len != 3) || (cache_ptr->slist_size != 3 * MONSTER_ENTRY_SIZE))) || - (cache_ptr->evictions_enabled != TRUE)) { + (cache_ptr->evictions_enabled != true)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected cache status 11."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected cache status 11."); failure_mssg = msg; } } @@ -13617,20 +13611,20 @@ check_evictions_enabled(unsigned paged) if (result < 0) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); + pass = false; + snprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5."); failure_mssg = msg; } else if (in_cache) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected status 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected status 5."); failure_mssg = msg; } else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "Unexpected entry history 5."); + pass = false; + snprintf(msg, (size_t)128, "Unexpected entry history 5."); failure_mssg = msg; } } @@ -13641,12 +13635,12 @@ check_evictions_enabled(unsigned paged) /* disable evictions one last time before we shut down */ if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, FALSE); + result = H5C_set_evictions_enabled(cache_ptr, false); if (result != SUCCEED) { - pass = FALSE; - HDsnprintf(msg, (size_t)128, "can't disable evictions 3."); + pass = false; + snprintf(msg, (size_t)128, "can't disable evictions 3."); failure_mssg = msg; } } @@ -13656,7 +13650,7 @@ check_evictions_enabled(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (show_progress) /* 34 */ @@ -13700,7 +13694,7 @@ check_flush_protected_err(unsigned paged) else TESTING("flush cache with protected entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, and try to flush. This * should fail. Unprotect the entry and flush again -- should @@ -13721,22 +13715,22 @@ check_flush_protected_err(unsigned paged) protect_entry(file_ptr, 0, 0); /* enable slist prior to flush */ - if ((pass) && (H5C_set_slist_enabled(cache_ptr, TRUE, FALSE) < 0)) { + if ((pass) && (H5C_set_slist_enabled(cache_ptr, true, false) < 0)) { - pass = FALSE; + pass = false; failure_mssg = "unable to enable slist prior to flush.\n"; } if ((pass) && (H5C_flush_cache(file_ptr, H5C__NO_FLAGS_SET) >= 0)) { - pass = FALSE; + pass = false; failure_mssg = "flush succeeded on cache with protected entry.\n"; } /* disable the slist after the flush */ - if ((pass) && (H5C_set_slist_enabled(cache_ptr, FALSE, FALSE) < 0)) { + if ((pass) && (H5C_set_slist_enabled(cache_ptr, false, false) < 0)) { - pass = FALSE; + pass = false; failure_mssg = "unable to disable slist after flush.\n"; } @@ -13747,7 +13741,7 @@ check_flush_protected_err(unsigned paged) H5C_FLUSH_CACHE(file_ptr, H5C__NO_FLAGS_SET, "flush failed after unprotect.\n") } - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -13787,7 +13781,7 @@ check_destroy_pinned_err(unsigned paged) else TESTING("destroy cache with permanently pinned entry error"); - pass = TRUE; + pass = true; /* allocate a cache, pin an entry, and try to flush destroy. This * should fail. Unpin the entry and flush destroy again -- should @@ -13803,19 +13797,19 @@ check_destroy_pinned_err(unsigned paged) unprotect_entry(file_ptr, 0, 0, H5C__PIN_ENTRY_FLAG); if (H5C_prep_for_file_close(file_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "unexpected failure of prep for file close.\n"; } /* end if */ if (H5C_dest(file_ptr) >= 0) { - pass = FALSE; + pass = false; failure_mssg = "destroy succeeded on cache with pinned entry.\n"; } /* end if */ else { unpin_entry(0, 0); if (H5C_dest(file_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "destroy failed after unpin.\n"; } /* end if */ else @@ -13831,7 +13825,7 @@ check_destroy_pinned_err(unsigned paged) * This causes the function to close and delete the file, * while skipping the call to H5C_dest(). */ - takedown_cache(NULL, FALSE, FALSE); + takedown_cache(NULL, false, false); } /* end if */ if (pass) { @@ -13869,7 +13863,7 @@ check_destroy_protected_err(unsigned paged) else TESTING("destroy cache with protected entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, and try to flush. This * should fail. Unprotect the entry and flush again -- should @@ -13892,20 +13886,20 @@ check_destroy_protected_err(unsigned paged) * prior to the final protect call. */ if (H5C_prep_for_file_close(file_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "unexpected failure of prep for file close.\n"; } /* end if */ protect_entry(file_ptr, 0, 0); if (H5C_dest(file_ptr) >= 0) { - pass = FALSE; + pass = false; failure_mssg = "destroy succeeded on cache with protected entry.\n"; } /* end if */ else { unprotect_entry(file_ptr, 0, 0, H5C__DIRTIED_FLAG); if (H5C_dest(file_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "destroy failed after unprotect.\n"; } /* end if */ else { @@ -13922,7 +13916,7 @@ check_destroy_protected_err(unsigned paged) * This causes the function to close and delete the file, * while skipping the call to H5C_dest(). */ - takedown_cache(NULL, FALSE, FALSE); + takedown_cache(NULL, false, false); } /* end if */ if (pass) { @@ -13963,7 +13957,7 @@ check_duplicate_insert_err(unsigned paged) else TESTING("duplicate entry insertion error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, and then try to insert * the entry again. This should fail. Unprotect the entry and @@ -13988,14 +13982,14 @@ check_duplicate_insert_err(unsigned paged) if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "insert of duplicate entry succeeded.\n"; } else { unprotect_entry(file_ptr, 0, 0, H5C__DIRTIED_FLAG); - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } } } @@ -14039,7 +14033,7 @@ check_double_pin_err(unsigned paged) else TESTING("pin a pinned entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, unprotect it with the pin flag, * protect it again, and then try to unprotect it again with the pin @@ -14068,7 +14062,7 @@ check_double_pin_err(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to pin a pinned entry succeeded.\n"; } else { @@ -14079,7 +14073,7 @@ check_double_pin_err(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14121,7 +14115,7 @@ check_double_unpin_err(unsigned paged) else TESTING("unpin an unpinned entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, unprotect it with the unpin flag. * -- This should fail. @@ -14148,7 +14142,7 @@ check_double_unpin_err(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to unpin an unpinned entry succeeded 1.\n"; } else { @@ -14163,14 +14157,14 @@ check_double_unpin_err(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to unpin an unpinned entry succeeded 2.\n"; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14212,7 +14206,7 @@ check_pin_entry_errs(unsigned paged) else TESTING("pin entry related errors"); - pass = TRUE; + pass = true; /* Allocate a cache, protect an entry, unprotect it with no flags, * and then call H5C_pin_protected_entry() to pin it -- This should fail. @@ -14245,7 +14239,7 @@ check_pin_entry_errs(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to pin an unprotected entry succeeded.\n"; } else { @@ -14264,7 +14258,7 @@ check_pin_entry_errs(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to pin a pinned, protected entry succeeded.\n"; } else { @@ -14275,7 +14269,7 @@ check_pin_entry_errs(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14317,7 +14311,7 @@ check_double_protect_err(unsigned paged) else TESTING("protect a protected entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, and then try to protect * the entry again. This should fail. Unprotect the entry and @@ -14342,7 +14336,7 @@ check_double_protect_err(unsigned paged) if (cache_entry_ptr != NULL) { - pass = FALSE; + pass = false; failure_mssg = "attempt to protect a protected entry succeeded.\n"; } } @@ -14354,7 +14348,7 @@ check_double_protect_err(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14396,7 +14390,7 @@ check_double_unprotect_err(unsigned paged) else TESTING("unprotect an unprotected entry error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, unprotect it, and then try to * unprotect the entry again. This should fail. Destroy the cache @@ -14422,14 +14416,14 @@ check_double_unprotect_err(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to unprotect an unprotected entry succeeded 1.\n"; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14474,7 +14468,7 @@ check_mark_entry_dirty_errs(unsigned paged) else TESTING("mark entry dirty related errors"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry, unprotect the entry without * pinning it, and try to mark it dirty -- this should fail. @@ -14501,14 +14495,14 @@ check_mark_entry_dirty_errs(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to dirty a unpinned and unprotected entry succeeded.\n"; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14550,7 +14544,7 @@ check_expunge_entry_errs(unsigned paged) else TESTING("expunge entry related errors"); - pass = TRUE; + pass = true; /* Allocate a cache, protect an entry, and then call H5C_expunge_entry() * to expunge it -- this should fail @@ -14581,7 +14575,7 @@ check_expunge_entry_errs(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to expunge a protected entry succeeded.\n"; } else { @@ -14596,7 +14590,7 @@ check_expunge_entry_errs(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to expunge a pinned entry succeeded.\n"; } else { @@ -14611,14 +14605,14 @@ check_expunge_entry_errs(unsigned paged) if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to expunge an unpinned and unprotected entry failed.\n"; } } if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14663,7 +14657,7 @@ check_move_entry_errs(unsigned paged) else TESTING("move entry related errors"); - pass = TRUE; + pass = true; /* allocate a cache, and insert several entries. Try to move * entries to other entries resident in the cache. This should @@ -14689,7 +14683,7 @@ check_move_entry_errs(unsigned paged) result = H5C_move_entry(cache_ptr, types[0], entry_0_0_ptr->addr, entry_0_1_ptr->addr); if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "move to addr of same type succeeded.\n"; } /* end if */ } /* end if */ @@ -14698,13 +14692,13 @@ check_move_entry_errs(unsigned paged) result = H5C_move_entry(cache_ptr, types[0], entry_0_0_ptr->addr, entry_1_0_ptr->addr); if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "move to addr of different type succeeded.\n"; } /* end if */ } /* end if */ if (pass) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); /* Allocate a cache, protect an entry R/O, and then call * H5C_move_entry() to move it -- this should fail. @@ -14729,7 +14723,7 @@ check_move_entry_errs(unsigned paged) result = H5C_move_entry(cache_ptr, types[0], entry_ptr->header.addr, entry_ptr->header.addr + 10); if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "Call to H5C_move_entry on a R/O protected entry succeeded.\n"; } /* end if */ else @@ -14737,7 +14731,7 @@ check_move_entry_errs(unsigned paged) } /* end if */ if (pass) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -14773,7 +14767,7 @@ check_resize_entry_errs(unsigned paged) else TESTING("resize entry related errors"); - pass = TRUE; + pass = true; /* Allocate a cache, protect an entry, and then call * H5C_resize_entry() to resize it -- this should succeed. @@ -14803,7 +14797,7 @@ check_resize_entry_errs(unsigned paged) if (result < 0) { - pass = FALSE; + pass = false; failure_mssg = "Call to H5C_resize_entry on a protected entry failed.\n"; } else { @@ -14818,7 +14812,7 @@ check_resize_entry_errs(unsigned paged) if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "Call to H5C_resize_entry with 0 new size succeeded.\n"; } else { @@ -14829,7 +14823,7 @@ check_resize_entry_errs(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14871,7 +14865,7 @@ check_unprotect_ro_dirty_err(unsigned paged) else TESTING("unprotect a read only entry dirty error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry read only, and then unprotect it * with the dirtied flag set. This should fail. Destroy the cache @@ -14895,7 +14889,7 @@ check_unprotect_ro_dirty_err(unsigned paged) if (result >= 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to unprotect a ro entry dirty succeeded 1.\n"; } } @@ -14907,7 +14901,7 @@ check_unprotect_ro_dirty_err(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } /* allocate a another cache, protect an entry read only twice, and @@ -14934,7 +14928,7 @@ check_unprotect_ro_dirty_err(unsigned paged) if (result > 0) { - pass = FALSE; + pass = false; failure_mssg = "attempt to unprotect a ro entry dirty succeeded 2.\n"; } } @@ -14947,7 +14941,7 @@ check_unprotect_ro_dirty_err(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -14989,7 +14983,7 @@ check_protect_ro_rw_err(unsigned paged) else TESTING("protect a read only entry rw error"); - pass = TRUE; + pass = true; /* allocate a cache, protect an entry read only, and then try to protect * it again rw. This should fail. @@ -15015,7 +15009,7 @@ check_protect_ro_rw_err(unsigned paged) if (thing_ptr != NULL) { - pass = FALSE; + pass = false; failure_mssg = "attempt to protect a ro entry rw succeeded.\n"; } } @@ -15027,7 +15021,7 @@ check_protect_ro_rw_err(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -15072,7 +15066,7 @@ check_protect_retries(unsigned paged) else TESTING("protect an entry to verify retries"); - pass = TRUE; + pass = true; /* Set up the cache */ if (pass) { @@ -15098,7 +15092,7 @@ check_protect_retries(unsigned paged) /* test case (1): * --actual_len is smaller the initial length from get_load_size() - * --verify_chksum() returns TRUE after max_verify_ct is reached + * --verify_chksum() returns true after max_verify_ct is reached * */ entry_ptr->actual_len = entry_ptr->size / 2; @@ -15114,7 +15108,7 @@ check_protect_retries(unsigned paged) (entry_ptr->addr != entry_ptr->header.addr) || (entry_ptr->verify_ct != entry_ptr->max_verify_ct)) { - pass = FALSE; + pass = false; failure_mssg = "error from H5C_protect()."; } else { @@ -15123,8 +15117,8 @@ check_protect_retries(unsigned paged) entry_ptr->cache_ptr = cache_ptr; entry_ptr->file_ptr = file_ptr; - entry_ptr->is_protected = TRUE; - entry_ptr->is_read_only = TRUE; + entry_ptr->is_protected = true; + entry_ptr->is_read_only = true; entry_ptr->ro_ref_count++; } @@ -15139,7 +15133,7 @@ check_protect_retries(unsigned paged) /* test case (2): * --actual_len is greater the initial length from get_load_size() - * --verify_chksum() returns FALSE even after all tries is reached + * --verify_chksum() returns false even after all tries is reached * (file_ptr->shared->read_attempts is smaller then max_verify_ct) */ entry_ptr->actual_len = entry_ptr->size * 2; @@ -15151,10 +15145,10 @@ check_protect_retries(unsigned paged) /* H5C_protect() should fail after all retries fail */ if (cache_entry_ptr != NULL) - pass = FALSE; + pass = false; } - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); reset_entries(); if (pass) { @@ -15187,17 +15181,17 @@ check_protect_retries(unsigned paged) static unsigned check_check_evictions_enabled_err(unsigned paged) { - herr_t result; - hbool_t evictions_enabled; - H5F_t *file_ptr = NULL; - H5C_t *cache_ptr = NULL; + herr_t result; + bool evictions_enabled; + H5F_t *file_ptr = NULL; + H5C_t *cache_ptr = NULL; if (paged) TESTING("get/set evictions enabled errors (paged aggregation)"); else TESTING("get/set evictions enabled errors"); - pass = TRUE; + pass = true; /* allocate a cache. * @@ -15226,7 +15220,7 @@ check_check_evictions_enabled_err(unsigned paged) if (result == SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_evictions_enabled succeeded() 1.\n"; } } @@ -15237,18 +15231,18 @@ check_check_evictions_enabled_err(unsigned paged) if (result == SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_evictions_enabled succeeded() 2.\n"; } } if (pass) { - result = H5C_set_evictions_enabled(cache_ptr, TRUE); + result = H5C_set_evictions_enabled(cache_ptr, true); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_evictions_enabled failed().\n"; } } @@ -15257,14 +15251,14 @@ check_check_evictions_enabled_err(unsigned paged) (cache_ptr->resize_ctl).incr_mode = H5C_incr__threshold; - result = H5C_get_evictions_enabled(cache_ptr, FALSE); + result = H5C_get_evictions_enabled(cache_ptr, false); if (result == SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_evictions_enabled succeeded() 1.\n"; } - else if (cache_ptr->evictions_enabled == TRUE) { + else if (cache_ptr->evictions_enabled == true) { } (cache_ptr->resize_ctl).incr_mode = H5C_incr__off; @@ -15274,11 +15268,11 @@ check_check_evictions_enabled_err(unsigned paged) (cache_ptr->resize_ctl).decr_mode = H5C_decr__threshold; - result = H5C_get_evictions_enabled(cache_ptr, FALSE); + result = H5C_get_evictions_enabled(cache_ptr, false); if (result == SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_evictions_enabled succeeded() 2.\n"; } @@ -15287,7 +15281,7 @@ check_check_evictions_enabled_err(unsigned paged) if (cache_ptr) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -15319,7 +15313,7 @@ check_check_evictions_enabled_err(unsigned paged) *------------------------------------------------------------------------- */ -hbool_t rpt_fcn_called = FALSE; +bool rpt_fcn_called = false; enum H5C_resize_status rpt_status; static void @@ -15328,14 +15322,14 @@ test_rpt_fcn(H5_ATTR_UNUSED H5C_t *cache_ptr, H5_ATTR_UNUSED int32_t version, H5 H5_ATTR_UNUSED size_t new_max_cache_size, H5_ATTR_UNUSED size_t old_min_clean_size, H5_ATTR_UNUSED size_t new_min_clean_size) { - rpt_fcn_called = TRUE; + rpt_fcn_called = true; rpt_status = status; } static unsigned -check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) +check_auto_cache_resize(bool cork_ageout, unsigned paged) { - hbool_t show_progress = FALSE; + bool show_progress = false; herr_t result; int32_t i; int32_t checkpoint = 0; @@ -15345,7 +15339,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ test_rpt_fcn, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (512 * 1024), /* double min_clean_fraction = */ 0.5, @@ -15361,7 +15355,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -15375,12 +15369,12 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* double decrement = */ 0.1, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; if (paged) @@ -15388,7 +15382,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) else TESTING("automatic cache resizing"); - pass = TRUE; + pass = true; if (show_progress) fprintf(stderr, "check point %d\n", checkpoint++); @@ -15408,7 +15402,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -15416,7 +15410,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { if ((cache_ptr->max_cache_size != (512 * 1024)) || (cache_ptr->min_clean_size != (256 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after initialization.\n"; } } @@ -15428,7 +15422,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * full status. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, PICO_ENTRY_TYPE, i); @@ -15441,7 +15435,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != not_full) || (cache_ptr->max_cache_size != (512 * 1024)) || (cache_ptr->min_clean_size != (256 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 1.\n"; } } @@ -15454,7 +15448,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15467,7 +15461,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != increase) || (cache_ptr->max_cache_size != (1 * 1024 * 1024)) || (cache_ptr->min_clean_size != (512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 2.\n"; } } @@ -15480,7 +15474,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, PICO_ENTRY_TYPE, i); @@ -15493,7 +15487,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != not_full) || (cache_ptr->max_cache_size != (1 * 1024 * 1024)) || (cache_ptr->min_clean_size != (512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 3.\n"; } } @@ -15506,7 +15500,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15520,7 +15514,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 4.\n"; } } @@ -15533,7 +15527,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15547,7 +15541,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 5.\n"; } } @@ -15560,7 +15554,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15574,7 +15568,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 6.\n"; } } @@ -15588,7 +15582,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15602,7 +15596,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (12 * 1024 * 1024)) || (cache_ptr->min_clean_size != (6 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 7.\n"; } } @@ -15615,7 +15609,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15629,7 +15623,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (14 * 1024 * 1024)) || (cache_ptr->min_clean_size != (7 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 8.\n"; } } @@ -15642,7 +15636,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15656,7 +15650,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (14 * 1024 * 1024)) || (cache_ptr->min_clean_size != (7 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 9.\n"; } } @@ -15670,7 +15664,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15684,7 +15678,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (13 * 1024 * 1024)) || (cache_ptr->min_clean_size != (6 * 1024 * 1024 + 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 10.\n"; } } @@ -15702,7 +15696,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1000 * 1000 + 10; auto_size_ctl.min_clean_fraction = 0.1; @@ -15718,7 +15712,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1000 * 1000); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -15731,17 +15725,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1000 * 1000); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 2.\n"; } } @@ -15751,7 +15745,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1000 * 1000 + 10)) || (cache_ptr->min_clean_size != (400 * 1000 + 1))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 1.\n"; } } @@ -15764,7 +15758,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15778,7 +15772,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (3 * 1000 * 1000 + 10)) || (cache_ptr->min_clean_size != (300 * 1000 + 1))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 11.\n"; } } @@ -15792,7 +15786,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15806,7 +15800,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (2 * 1000 * 1000 + 10)) || (cache_ptr->min_clean_size != (200 * 1000 + 1))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 12.\n"; } } @@ -15820,7 +15814,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15834,7 +15828,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1 * 1000 * 1000 + 10)) || (cache_ptr->min_clean_size != (100 * 1000 + 1))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 13.\n"; } } @@ -15848,7 +15842,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15861,7 +15855,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (500 * 1000 + 5)) || (cache_ptr->min_clean_size != (50 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 14.\n"; } } @@ -15874,7 +15868,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15887,7 +15881,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (500 * 1000)) || (cache_ptr->min_clean_size != (50 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 15.\n"; } } @@ -15900,7 +15894,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15913,7 +15907,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != at_min_size) || (cache_ptr->max_cache_size != (500 * 1000)) || (cache_ptr->min_clean_size != (50 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 16.\n"; } } @@ -15926,7 +15920,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 900)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15947,7 +15941,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (500 * 1000)) || (cache_ptr->min_clean_size != (50 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 17.\n"; } } @@ -15960,7 +15954,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -15973,7 +15967,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != increase) || (cache_ptr->max_cache_size != (1 * 1000 * 1000)) || (cache_ptr->min_clean_size != (100 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 18.\n"; } } @@ -15986,7 +15980,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -15999,7 +15993,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (500 * 1000)) || (cache_ptr->min_clean_size != (50 * 1000))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 19.\n"; } } @@ -16017,7 +16011,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -16033,7 +16027,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 4.0; - auto_size_ctl.apply_max_increment = FALSE; + auto_size_ctl.apply_max_increment = false; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -16046,17 +16040,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.25; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 3.\n"; } } @@ -16066,7 +16060,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 2.\n"; } } @@ -16079,7 +16073,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16092,7 +16086,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (1 * 1024 * 1024)) || (cache_ptr->min_clean_size != (512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 20.\n"; } } @@ -16105,7 +16099,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -16119,7 +16113,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 21.\n"; } } @@ -16132,7 +16126,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -16146,7 +16140,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (16 * 1024 * 1024)) || (cache_ptr->min_clean_size != (8 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 22.\n"; } } @@ -16159,7 +16153,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16173,7 +16167,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 23.\n"; } } @@ -16193,7 +16187,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -16209,7 +16203,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -16222,17 +16216,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 4.\n"; } } @@ -16242,7 +16236,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 3.\n"; } } @@ -16261,7 +16255,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * not be able to. */ if (pass) { /* first epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16275,7 +16269,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 24.\n"; } } @@ -16284,7 +16278,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) fprintf(stderr, "check point %d\n", checkpoint++); if (pass) { /* second epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16298,7 +16292,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 25.\n"; } } @@ -16307,7 +16301,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) fprintf(stderr, "check point %d\n", checkpoint++); if (pass) { /* third epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16321,7 +16315,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 26.\n"; } } @@ -16334,7 +16328,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * happen until we get the hit rate above the lower threshold. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16348,7 +16342,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 27.\n"; } } @@ -16360,7 +16354,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * reduction now. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16373,7 +16367,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (2001 * 1024)) || (cache_ptr->min_clean_size != (int)(2001 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 28.\n"; } } @@ -16384,7 +16378,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* sixth epoch -- force the hit rate to 100% again. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16397,7 +16391,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (1001 * 1024)) || (cache_ptr->min_clean_size != (int)(1001 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 29.\n"; } } @@ -16408,7 +16402,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* seventh epoch -- force the hit rate to 100% again. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16421,7 +16415,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (1000 * 1024)) || (cache_ptr->min_clean_size != (int)(1000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 30.\n"; } } @@ -16433,7 +16427,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * state. */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16446,7 +16440,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (1000 * 1024)) || (cache_ptr->min_clean_size != (int)(1000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 31.\n"; } } @@ -16459,7 +16453,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) * should be decreased to the minimum. */ if (pass) { /* ninth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16472,7 +16466,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (1000 * 1024)) || (cache_ptr->min_clean_size != (int)(1000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 32.\n"; } } @@ -16481,7 +16475,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) fprintf(stderr, "check point %d\n", checkpoint++); if (pass) { /* tenth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16494,7 +16488,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (1000 * 1024)) || (cache_ptr->min_clean_size != (int)(1000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 33.\n"; } } @@ -16503,7 +16497,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) fprintf(stderr, "check point %d\n", checkpoint++); if (pass) { /* eleventh epoch -- cache size reduction */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16517,7 +16511,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 34.\n"; } } @@ -16526,7 +16520,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) fprintf(stderr, "check point %d\n", checkpoint++); if (pass) { /* twelfth epoch -- at minimum size so no more ageouts */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16540,7 +16534,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 35.\n"; } } @@ -16561,7 +16555,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -16577,7 +16571,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -16590,19 +16584,19 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 5.\n"; } } @@ -16612,7 +16606,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 4.\n"; } } @@ -16629,7 +16623,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* first epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16643,7 +16637,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 36.\n"; } } @@ -16653,7 +16647,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* second epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16667,7 +16661,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 37.\n"; } } @@ -16677,7 +16671,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* third epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16691,7 +16685,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 38.\n"; } } @@ -16705,7 +16699,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16719,7 +16713,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 39.\n"; } } @@ -16732,7 +16726,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16746,7 +16740,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (7 * 1024 * 1024)) || (cache_ptr->min_clean_size != (7 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 40.\n"; } } @@ -16758,7 +16752,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16772,7 +16766,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (6 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 41.\n"; } } @@ -16784,7 +16778,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16798,7 +16792,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (5 * 1024 * 1024)) || (cache_ptr->min_clean_size != (5 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 42.\n"; } } @@ -16810,7 +16804,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16824,7 +16818,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 43.\n"; } } @@ -16836,7 +16830,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16850,7 +16844,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (3 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 44.\n"; } } @@ -16862,7 +16856,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16876,7 +16870,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 45.\n"; } } @@ -16888,7 +16882,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16901,7 +16895,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 46.\n"; } } @@ -16914,7 +16908,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -16927,7 +16921,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 47.\n"; } } @@ -16941,7 +16935,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* thirteenth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16954,7 +16948,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 48.\n"; } } @@ -16964,7 +16958,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* fourteenth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -16978,7 +16972,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1001 * 1024 + MONSTER_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1001 * 512 + MONSTER_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 49.\n"; } } @@ -16988,7 +16982,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* fifteenth epoch -- cache size reduction */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17002,7 +16996,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 50.\n"; } } @@ -17012,7 +17006,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* sixteenth epoch -- at minimum size so no more ageouts */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17026,7 +17020,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 51.\n"; } } @@ -17043,7 +17037,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -17059,7 +17053,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -17072,19 +17066,19 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.5; /* for ease of testing */ result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 6.\n"; } } @@ -17094,7 +17088,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 5.\n"; } } @@ -17111,7 +17105,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* first epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17125,7 +17119,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 52.\n"; } } @@ -17135,7 +17129,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* second epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17149,7 +17143,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 53.\n"; } } @@ -17159,7 +17153,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* third epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 2000; while (pass && (i < 3000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17173,7 +17167,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 54.\n"; } } @@ -17187,7 +17181,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17201,7 +17195,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 55.\n"; } } @@ -17214,7 +17208,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17227,7 +17221,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (4002 * 1024)) || (cache_ptr->min_clean_size != (int)(4002 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 56.\n"; } } @@ -17239,7 +17233,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17252,7 +17246,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (2002 * 1024)) || (cache_ptr->min_clean_size != (int)(2002 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 57.\n"; } } @@ -17264,7 +17258,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17277,7 +17271,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != decrease) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 58.\n"; } } @@ -17290,7 +17284,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 3000; while (pass && (i < 4000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17303,7 +17297,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 59.\n"; } } @@ -17317,7 +17311,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* ninth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17330,7 +17324,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (int)(2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 60.\n"; } } @@ -17340,7 +17334,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* tenth epoch */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17353,7 +17347,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->max_cache_size != (2000 * 1024)) || (cache_ptr->min_clean_size != (2000 * 512))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 61.\n"; } } @@ -17363,7 +17357,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* eleventh epoch -- cache size reduction */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17377,7 +17371,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 62.\n"; } } @@ -17387,7 +17381,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* twelfth epoch -- at minimum size so no more ageouts */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -17401,7 +17395,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != MONSTER_ENTRY_SIZE + MEDIUM_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 63.\n"; } } @@ -17420,7 +17414,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -17436,7 +17430,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -17452,17 +17446,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 1; /* for ease of testing */ - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 7.\n"; } } @@ -17472,7 +17466,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 6.\n"; } } @@ -17486,7 +17480,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* first epoch -- hit rate 0 */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17500,7 +17494,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 64.\n"; } } @@ -17510,7 +17504,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* second epoch -- hit rate 0 */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17524,7 +17518,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 65.\n"; } } @@ -17534,7 +17528,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* third epoch -- hit rate 1.0 -- should see decrease */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17548,7 +17542,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1001 * LARGE_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1001 * LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 66.\n"; } } @@ -17559,7 +17553,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* fourth epoch -- load up the cache again -- hit rate 0 */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17573,7 +17567,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1001 * LARGE_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1001 * LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 67.\n"; } } @@ -17584,7 +17578,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* fifth epoch -- still loading up the cache -- hit rate 0 */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17598,7 +17592,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1001 * LARGE_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1001 * LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 68.\n"; } } @@ -17609,7 +17603,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* sixth epoch -- force hit rate to .998 -- should be no reduction */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1002; while (pass && (i < 2002)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17623,7 +17617,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1001 * LARGE_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1001 * LARGE_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 69.\n"; } } @@ -17635,7 +17629,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1003; while (pass && (i < 2003)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17649,7 +17643,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (1000 * MEDIUM_ENTRY_SIZE)) || (cache_ptr->min_clean_size != (1000 * MEDIUM_ENTRY_SIZE / 2))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 70.\n"; } } @@ -17667,7 +17661,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1000 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -17683,7 +17677,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -17696,17 +17690,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1000 * 1024); auto_size_ctl.epochs_before_eviction = 1; /* for ease of testing */ - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.5; /* for ease of testing */ result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 8.\n"; } } @@ -17716,7 +17710,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1000 * 1024)) || (cache_ptr->min_clean_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 7.\n"; } } @@ -17730,7 +17724,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { /* first epoch -- hit rate 0 */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17744,7 +17738,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1000 * 1024)) || (cache_ptr->min_clean_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 71.\n"; } } @@ -17754,7 +17748,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { /* second epoch -- hit rate 0 */ - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17768,7 +17762,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->max_cache_size != (8 * 1000 * 1024)) || (cache_ptr->min_clean_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 72.\n"; } } @@ -17786,7 +17780,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17801,7 +17795,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (7 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 73.\n"; } } @@ -17814,7 +17808,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17829,7 +17823,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (6 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 74.\n"; } } @@ -17842,7 +17836,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17857,7 +17851,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (5 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 75.\n"; } } @@ -17871,7 +17865,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17886,7 +17880,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 76.\n"; } } @@ -17898,7 +17892,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, LARGE_ENTRY_TYPE, i); @@ -17913,7 +17907,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 77.\n"; } } @@ -17926,7 +17920,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17941,7 +17935,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (5 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 78.\n"; } } @@ -17955,7 +17949,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17970,7 +17964,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (4 * 1000 * 1024)) || (cache_ptr->index_size != (4 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 79.\n"; } } @@ -17984,7 +17978,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -17999,7 +17993,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (7 * 1000 * 1024 / 2)) || (cache_ptr->index_size != (3 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 80.\n"; } } @@ -18013,7 +18007,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18028,7 +18022,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1000 * 1024)) || (cache_ptr->index_size != (2 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 81.\n"; } } @@ -18040,7 +18034,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18055,7 +18049,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (5 * 1000 * 1024 / 2)) || (cache_ptr->index_size != (1 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 82.\n"; } } @@ -18067,7 +18061,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18082,7 +18076,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (2 * 1000 * 1024)) || (cache_ptr->index_size != (1 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 83.\n"; } } @@ -18094,7 +18088,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18109,7 +18103,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1000 * 1024 / 2)) || (cache_ptr->index_size != (1 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 84.\n"; } } @@ -18121,7 +18115,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18136,7 +18130,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (1 * 1000 * 1024)) || (cache_ptr->index_size != (1 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 85.\n"; } } @@ -18148,7 +18142,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -18163,7 +18157,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (1 * 1000 * 1024)) || (cache_ptr->index_size != (1 * 1000 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 86.\n"; } } @@ -18193,7 +18187,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); reset_entries(); } @@ -18209,7 +18203,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 64 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -18225,7 +18219,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (32 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -18238,17 +18232,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1000 * 1024); auto_size_ctl.epochs_before_eviction = 1; /* for ease of testing */ - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.5; /* for ease of testing */ result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 12.\n"; } } @@ -18258,7 +18252,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (64 * 1024)) || (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->cache_accesses != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (0).\n"; } } @@ -18278,7 +18272,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) || (cache_ptr->index_size != HUGE_ENTRY_SIZE) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (1).\n"; } } @@ -18303,7 +18297,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_size != (HUGE_ENTRY_SIZE + MONSTER_ENTRY_SIZE)) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (2).\n"; } } @@ -18327,7 +18321,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_size != ((2 * MONSTER_ENTRY_SIZE) + HUGE_ENTRY_SIZE)) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (3).\n"; } } @@ -18349,7 +18343,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_len != 2) || (cache_ptr->index_size != (2 * MONSTER_ENTRY_SIZE)) || (cache_ptr->cache_accesses != 2)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (4).\n"; } } @@ -18369,7 +18363,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 13.\n"; } } @@ -18378,7 +18372,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (5).\n"; } } @@ -18405,7 +18399,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) || (cache_ptr->index_size != HUGE_ENTRY_SIZE) || (cache_ptr->cache_accesses != 2)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (6).\n"; } } @@ -18427,7 +18421,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_size != HUGE_ENTRY_SIZE + MONSTER_ENTRY_SIZE) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (7).\n"; } } @@ -18446,7 +18440,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_size != 2 * MONSTER_ENTRY_SIZE + HUGE_ENTRY_SIZE) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (8).\n"; } } @@ -18468,7 +18462,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->index_len != 2) || (cache_ptr->index_size != (2 * MONSTER_ENTRY_SIZE)) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (9).\n"; } } @@ -18487,22 +18481,22 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) expunge_entry(file_ptr, MONSTER_ENTRY_TYPE, 6); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 1024, true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 1024, true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 1024, true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 13); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 13, 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 13, 1024, true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 13, H5C__DIRTIED_FLAG); - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); if (pass) { @@ -18511,7 +18505,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 13.\n"; } } @@ -18520,7 +18514,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1024)) || (cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (10).\n"; } } @@ -18547,7 +18541,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 4 * 1024) || (cache_ptr->cache_accesses != 4)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (11).\n"; } } @@ -18561,14 +18555,14 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (3 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (3 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__DIRTIED_FLAG); if (pass && (((cache_ptr->max_cache_size != (6 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 6 * 1024) || (cache_ptr->cache_accesses != 5)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (12).\n"; } } @@ -18583,14 +18577,14 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (10 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (10 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__DIRTIED_FLAG); if (pass && (((cache_ptr->max_cache_size != (13 * 1024)) || (cache_ptr->min_clean_size != (13 * 512)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 13 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (13).\n"; } } @@ -18604,14 +18598,14 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (10 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (10 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__DIRTIED_FLAG); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 22 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (14).\n"; } } @@ -18625,14 +18619,14 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (10 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (10 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__DIRTIED_FLAG); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 31 * 1024) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (15).\n"; } } @@ -18647,15 +18641,15 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__DIRTIED_FLAG); if (pass) { @@ -18665,7 +18659,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 14.\n"; } } @@ -18674,7 +18668,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 4 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (16).\n"; } } @@ -18688,13 +18682,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 2 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 2 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (6 * 1024)) || (cache_ptr->min_clean_size != (6 * 512)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 5 * 1024) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (17).\n"; } } @@ -18704,13 +18698,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (13 * 1024)) || (cache_ptr->min_clean_size != (13 * 512)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 13 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (18).\n"; } } @@ -18722,13 +18716,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 22 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (19).\n"; } } @@ -18740,13 +18734,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 31 * 1024) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (20).\n"; } } @@ -18772,7 +18766,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 31 * 1024) || (cache_ptr->cache_accesses != 4)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (21).\n"; } } @@ -18787,15 +18781,15 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__DIRTIED_FLAG); protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (1 * 1024), TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, (1 * 1024), true); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__DIRTIED_FLAG); if (pass) { @@ -18805,7 +18799,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 15.\n"; } } @@ -18814,7 +18808,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (3 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 4 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (22).\n"; } } @@ -18823,13 +18817,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 2 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 2 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (6 * 1024)) || (cache_ptr->min_clean_size != (6 * 512)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 5 * 1024) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (23).\n"; } } @@ -18839,13 +18833,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 10, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (13 * 1024)) || (cache_ptr->min_clean_size != (13 * 512)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 13 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (24).\n"; } } @@ -18857,13 +18851,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 11, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 22 * 1024) || (cache_ptr->cache_accesses != 0)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (25).\n"; } } @@ -18875,13 +18869,13 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) protect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12); unprotect_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, H5C__PIN_ENTRY_FLAG); - resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 10 * 1024, TRUE); + resize_entry(file_ptr, VARIABLE_ENTRY_TYPE, 12, 10 * 1024, true); if (pass && (((cache_ptr->max_cache_size != (22 * 1024)) || (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 31 * 1024) || (cache_ptr->cache_accesses != 1)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (26).\n"; } } @@ -18907,7 +18901,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 4) || (cache_ptr->index_size != 31 * 1024) || (cache_ptr->cache_accesses != 4)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (27).\n"; } } @@ -18926,7 +18920,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) (cache_ptr->min_clean_size != (11 * 1024)) || (cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->cache_accesses != 4)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (28).\n"; } } @@ -18943,7 +18937,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -18959,7 +18953,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -18972,17 +18966,17 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (2 * 1024); auto_size_ctl.epochs_before_eviction = 1; /* for ease of testing */ - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.5; /* for ease of testing */ result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 15.\n"; } } @@ -18995,7 +18989,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024)) || (cache_ptr->min_clean_size != (4 * 512)) || (cache_ptr->index_len != 0) || (cache_ptr->index_size != 0) || (cache_ptr->cache_accesses != 0)) { - pass = FALSE; + pass = false; failure_mssg = "bad cache after initialization 15.\n"; } } @@ -19008,16 +19002,16 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, LARGE_ENTRY_TYPE, 0); unprotect_entry(file_ptr, LARGE_ENTRY_TYPE, 0, H5C__NO_FLAGS_SET); if (pass && (((cache_ptr->max_cache_size != (4 * 1024)) || (cache_ptr->min_clean_size != (4 * 512)) || (cache_ptr->index_len != 1) || (cache_ptr->index_size != LARGE_ENTRY_SIZE) || - (cache_ptr->cache_accesses != 1) || (rpt_fcn_called == TRUE)))) { + (cache_ptr->cache_accesses != 1) || (rpt_fcn_called == true)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (29).\n"; } } @@ -19031,7 +19025,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, LARGE_ENTRY_TYPE, 1); unprotect_entry(file_ptr, LARGE_ENTRY_TYPE, 1, H5C__NO_FLAGS_SET); @@ -19039,9 +19033,9 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass && (((cache_ptr->max_cache_size != (12 * 1024)) || (cache_ptr->min_clean_size != (12 * 512)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != 2 * LARGE_ENTRY_SIZE) || - (cache_ptr->cache_accesses != 1) || (rpt_fcn_called != TRUE)))) { + (cache_ptr->cache_accesses != 1) || (rpt_fcn_called != true)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (30).\n"; } } @@ -19054,7 +19048,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, LARGE_ENTRY_TYPE, 2); unprotect_entry(file_ptr, LARGE_ENTRY_TYPE, 2, H5C__NO_FLAGS_SET); @@ -19064,9 +19058,9 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass && (((cache_ptr->max_cache_size != (12 * 1024)) || (cache_ptr->min_clean_size != (12 * 512)) || (cache_ptr->index_len != 3) || (cache_ptr->index_size != 3 * LARGE_ENTRY_SIZE) || - (cache_ptr->cache_accesses != 3) || (rpt_fcn_called != FALSE)))) { + (cache_ptr->cache_accesses != 3) || (rpt_fcn_called != false)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (31).\n"; } } @@ -19079,7 +19073,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, TINY_ENTRY_TYPE, 0); @@ -19092,7 +19086,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if ((!rpt_fcn_called) || (cache_ptr->max_cache_size != (4 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024)) || (cache_ptr->index_size != (1 * TINY_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (32).\n"; } } @@ -19103,7 +19097,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* Force another flash increase */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, LARGE_ENTRY_TYPE, 0); unprotect_entry(file_ptr, LARGE_ENTRY_TYPE, 0, H5C__NO_FLAGS_SET); @@ -19111,10 +19105,10 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass && (((cache_ptr->max_cache_size != (4 * 1024 + 128)) || (cache_ptr->min_clean_size != (2 * 1024 + 64)) || (cache_ptr->index_len != 2) || (cache_ptr->index_size != LARGE_ENTRY_SIZE + TINY_ENTRY_SIZE) || - (cache_ptr->cache_accesses != 1) || (rpt_fcn_called == FALSE) || + (cache_ptr->cache_accesses != 1) || (rpt_fcn_called == false) || (rpt_status != flash_increase)))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (33).\n"; } } @@ -19125,7 +19119,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) /* force regular size increase up to maximum */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 500)) { protect_entry(file_ptr, TINY_ENTRY_TYPE, i); @@ -19136,9 +19130,9 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) } if ((cache_ptr->max_cache_size != (20 * 1024)) || (cache_ptr->min_clean_size != (10 * 1024)) || - (rpt_fcn_called == FALSE) || (rpt_status != at_max_size)) { + (rpt_fcn_called == false) || (rpt_status != at_max_size)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache config (34).\n"; } } @@ -19148,7 +19142,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (show_progress) @@ -19181,7 +19175,7 @@ check_auto_cache_resize(hbool_t cork_ageout, unsigned paged) static unsigned check_auto_cache_resize_disable(unsigned paged) { - hbool_t show_progress = FALSE; + bool show_progress = false; herr_t result; int32_t i; int32_t checkpoint = 0; @@ -19191,7 +19185,7 @@ check_auto_cache_resize_disable(unsigned paged) /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ test_rpt_fcn, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (512 * 1024), /* double min_clean_fraction = */ 0.5, @@ -19207,7 +19201,7 @@ check_auto_cache_resize_disable(unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -19221,12 +19215,12 @@ check_auto_cache_resize_disable(unsigned paged) /* double decrement = */ 0.1, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; if (paged) @@ -19234,7 +19228,7 @@ check_auto_cache_resize_disable(unsigned paged) else TESTING("automatic cache resize disable"); - pass = TRUE; + pass = true; if (show_progress) fprintf(stderr, "check point %d\n", checkpoint++); @@ -19252,7 +19246,7 @@ check_auto_cache_resize_disable(unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "file_ptr NULL from setup_cache."; } else { @@ -19267,7 +19261,7 @@ check_auto_cache_resize_disable(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -19276,7 +19270,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (512 * 1024)) || (cache_ptr->min_clean_size != (256 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after initialization.\n"; } } @@ -19296,7 +19290,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -19312,7 +19306,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 1.0; /* disable size increases */ - auto_size_ctl.apply_max_increment = FALSE; + auto_size_ctl.apply_max_increment = false; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -19325,19 +19319,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 2.\n"; } } @@ -19347,7 +19341,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 1.\n"; } } @@ -19360,7 +19354,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19375,7 +19369,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 1.\n"; } } @@ -19388,7 +19382,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19403,7 +19397,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 2.\n"; } } @@ -19416,7 +19410,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19431,7 +19425,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 3.\n"; } } @@ -19448,7 +19442,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -19464,7 +19458,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = FALSE; + auto_size_ctl.apply_max_increment = false; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -19476,19 +19470,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.upper_hr_threshold = 0.995; auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 3.\n"; } } @@ -19498,7 +19492,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 2.\n"; } } @@ -19511,7 +19505,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19526,7 +19520,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 4.\n"; } } @@ -19539,7 +19533,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19554,7 +19548,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 5.\n"; } } @@ -19567,7 +19561,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19582,7 +19576,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 6.\n"; } } @@ -19599,7 +19593,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -19615,7 +19609,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = FALSE; + auto_size_ctl.apply_max_increment = false; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -19628,19 +19622,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 4.\n"; } } @@ -19650,7 +19644,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 3.\n"; } } @@ -19663,7 +19657,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19678,7 +19672,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 7.\n"; } } @@ -19691,7 +19685,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19706,7 +19700,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 8.\n"; } } @@ -19719,7 +19713,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19734,7 +19728,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 9.\n"; } } @@ -19750,7 +19744,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -19766,7 +19760,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -19779,19 +19773,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 1.0; /* disable size decreases */ - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 5.\n"; } } @@ -19804,7 +19798,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 4.\n"; } } @@ -19817,7 +19811,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19832,7 +19826,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 10.\n"; } } @@ -19844,7 +19838,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -19859,7 +19853,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 11.\n"; } } @@ -19872,7 +19866,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19887,7 +19881,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 12.\n"; } } @@ -19904,7 +19898,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -19920,7 +19914,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -19933,19 +19927,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 6.\n"; } } @@ -19955,7 +19949,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 5.\n"; } } @@ -19968,7 +19962,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -19983,7 +19977,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 13.\n"; } } @@ -19995,7 +19989,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20010,7 +20004,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 14.\n"; } } @@ -20023,7 +20017,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20038,7 +20032,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 15.\n"; } } @@ -20054,7 +20048,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -20070,7 +20064,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -20083,19 +20077,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 7.\n"; } } @@ -20105,7 +20099,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 6.\n"; } } @@ -20118,7 +20112,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20133,7 +20127,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 16.\n"; } } @@ -20145,7 +20139,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20160,7 +20154,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 17.\n"; } } @@ -20173,7 +20167,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20188,7 +20182,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 18.\n"; } } @@ -20206,7 +20200,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -20222,7 +20216,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -20235,19 +20229,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = 0; /* disable decrement */ auto_size_ctl.epochs_before_eviction = 1; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 8.\n"; } } @@ -20257,7 +20251,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 7.\n"; } } @@ -20268,7 +20262,7 @@ check_auto_cache_resize_disable(unsigned paged) if (pass) { /* flush the cache and destroy all entries so we start from a known point */ - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); } if (show_progress) @@ -20279,7 +20273,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20294,7 +20288,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 19.\n"; } } @@ -20306,7 +20300,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20321,7 +20315,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 20.\n"; } } @@ -20335,7 +20329,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20350,7 +20344,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 21.\n"; } } @@ -20362,7 +20356,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20377,7 +20371,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 22.\n"; } } @@ -20392,7 +20386,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20407,7 +20401,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 23.\n"; } } @@ -20423,7 +20417,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -20439,7 +20433,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -20452,19 +20446,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 1; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 1.0; /* disable decrement */ result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 9.\n"; } } @@ -20474,7 +20468,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 8.\n"; } } @@ -20485,7 +20479,7 @@ check_auto_cache_resize_disable(unsigned paged) if (pass) { /* flush the cache and destroy all entries so we start from a known point */ - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); } if (show_progress) @@ -20496,7 +20490,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20511,7 +20505,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 24.\n"; } } @@ -20523,7 +20517,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20538,7 +20532,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 25.\n"; } } @@ -20552,7 +20546,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20567,7 +20561,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 26.\n"; } } @@ -20579,7 +20573,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20594,7 +20588,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 27.\n"; } } @@ -20609,7 +20603,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20624,7 +20618,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 28.\n"; } } @@ -20647,7 +20641,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -20663,7 +20657,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -20676,19 +20670,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 1; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 10.\n"; } } @@ -20698,7 +20692,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 9.\n"; } } @@ -20709,7 +20703,7 @@ check_auto_cache_resize_disable(unsigned paged) if (pass) { /* flush the cache and destroy all entries so we start from a known point */ - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); } if (show_progress) @@ -20720,7 +20714,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20735,7 +20729,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 29.\n"; } } @@ -20747,7 +20741,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 1000; while (pass && (i < 2000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20762,7 +20756,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 30.\n"; } } @@ -20778,7 +20772,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -20794,7 +20788,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->min_clean_size != (2 * 1024 * 1024)) || (cache_ptr->index_len != 2000) || (cache_ptr->index_size != 2000 * SMALL_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 31.\n"; } } @@ -20806,7 +20800,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20821,7 +20815,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 32.\n"; } } @@ -20838,7 +20832,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 999); @@ -20853,7 +20847,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 33.\n"; } } @@ -20873,7 +20867,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 2 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -20889,7 +20883,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -20902,19 +20896,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 11.\n"; } } @@ -20924,7 +20918,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 10.\n"; } } @@ -20937,7 +20931,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -20952,7 +20946,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 34.\n"; } } @@ -20965,7 +20959,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -20980,7 +20974,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 35.\n"; } } @@ -20993,7 +20987,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.25; @@ -21009,7 +21003,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 1.0; /* disable size increment */ - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21022,19 +21016,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 1.0; /* disable size decrement */ - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 12.\n"; } } @@ -21044,7 +21038,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 11.\n"; } } @@ -21057,7 +21051,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -21072,7 +21066,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 36.\n"; } } @@ -21085,7 +21079,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -21100,7 +21094,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 37.\n"; } } @@ -21113,7 +21107,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = FALSE; + auto_size_ctl.set_initial_size = false; auto_size_ctl.initial_size = 2 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -21129,7 +21123,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21142,19 +21136,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 13.\n"; } } @@ -21164,7 +21158,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 12.\n"; } } @@ -21177,7 +21171,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -21192,7 +21186,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 38.\n"; } } @@ -21205,7 +21199,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -21220,7 +21214,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (6 * 1024 * 1024)) || (cache_ptr->min_clean_size != (3 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 39.\n"; } } @@ -21233,7 +21227,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.25; @@ -21249,7 +21243,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 1.0; /* disable size increment */ - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21262,19 +21256,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 14.\n"; } } @@ -21284,7 +21278,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 13.\n"; } } @@ -21297,7 +21291,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -21312,7 +21306,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 40.\n"; } } @@ -21325,7 +21319,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -21340,7 +21334,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 41.\n"; } } @@ -21353,7 +21347,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -21369,7 +21363,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21382,19 +21376,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 1.0; /* disable size decrement */ - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 15.\n"; } } @@ -21404,7 +21398,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 14.\n"; } } @@ -21417,7 +21411,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -21432,7 +21426,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 42.\n"; } } @@ -21445,7 +21439,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -21460,7 +21454,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 43.\n"; } } @@ -21473,7 +21467,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 4 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -21489,7 +21483,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21502,19 +21496,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 16.\n"; } } @@ -21524,7 +21518,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 15.\n"; } } @@ -21537,7 +21531,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, i); @@ -21552,7 +21546,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 44.\n"; } } @@ -21565,7 +21559,7 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); @@ -21580,7 +21574,7 @@ check_auto_cache_resize_disable(unsigned paged) (cache_ptr->size_decrease_possible) || (cache_ptr->max_cache_size != (4 * 1024 * 1024)) || (cache_ptr->min_clean_size != (2 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 45.\n"; } } @@ -21620,7 +21614,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 64 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -21636,7 +21630,7 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (2 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21649,19 +21643,19 @@ check_auto_cache_resize_disable(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = TRUE; + auto_size_ctl.apply_max_decrement = true; auto_size_ctl.max_decrement = (1 * 1024); auto_size_ctl.epochs_before_eviction = 3; - auto_size_ctl.apply_empty_reserve = TRUE; + auto_size_ctl.apply_empty_reserve = true; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 17.\n"; } } @@ -21670,7 +21664,7 @@ check_auto_cache_resize_disable(unsigned paged) if ((cache_ptr->max_cache_size != (64 * 1024)) || (cache_ptr->min_clean_size != (32 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 16.\n"; } } @@ -21681,14 +21675,14 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, LARGE_ENTRY_TYPE, 0); unprotect_entry(file_ptr, LARGE_ENTRY_TYPE, 0, H5C__NO_FLAGS_SET); if (pass && (((cache_ptr->max_cache_size != (64 * 1024)) || (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) || - (cache_ptr->index_size != LARGE_ENTRY_SIZE) || (rpt_fcn_called != FALSE)))) { + (cache_ptr->index_size != LARGE_ENTRY_SIZE) || (rpt_fcn_called != false)))) { fprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size)); fprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size)); @@ -21696,7 +21690,7 @@ check_auto_cache_resize_disable(unsigned paged) fprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size)); fprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called)); - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 46.\n"; } } @@ -21713,14 +21707,14 @@ check_auto_cache_resize_disable(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; protect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0); unprotect_entry(file_ptr, MONSTER_ENTRY_TYPE, 0, H5C__NO_FLAGS_SET); if (pass && (((cache_ptr->max_cache_size != (64 * 1024)) || (cache_ptr->min_clean_size != (32 * 1024)) || (cache_ptr->index_len != 1) || - (cache_ptr->index_size != MONSTER_ENTRY_SIZE) || (rpt_fcn_called != FALSE)))) { + (cache_ptr->index_size != MONSTER_ENTRY_SIZE) || (rpt_fcn_called != false)))) { fprintf(stdout, "\nmax_cache_size = %ld.\n", (long)(cache_ptr->max_cache_size)); fprintf(stdout, "min_clean_size = %ld.\n", (long)(cache_ptr->min_clean_size)); @@ -21728,7 +21722,7 @@ check_auto_cache_resize_disable(unsigned paged) fprintf(stdout, "index_size = %ld.\n", (long)(cache_ptr->index_size)); fprintf(stdout, "rpt_fcn_called = %ld.\n", (long)(rpt_fcn_called)); - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 47.\n"; } } @@ -21738,7 +21732,7 @@ check_auto_cache_resize_disable(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (show_progress) @@ -21774,7 +21768,7 @@ check_auto_cache_resize_disable(unsigned paged) static unsigned check_auto_cache_resize_epoch_markers(unsigned paged) { - hbool_t show_progress = FALSE; + bool show_progress = false; herr_t result; int32_t i; int32_t j; @@ -21785,7 +21779,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ test_rpt_fcn, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (512 * 1024), /* double min_clean_fraction = */ 0.5, @@ -21801,7 +21795,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -21815,12 +21809,12 @@ check_auto_cache_resize_epoch_markers(unsigned paged) /* double decrement = */ 0.1, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; if (paged) @@ -21828,7 +21822,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) else TESTING("automatic cache resize epoch marker management"); - pass = TRUE; + pass = true; if (show_progress) fprintf(stderr, "check point %d\n", checkpoint++); @@ -21847,7 +21841,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -21856,7 +21850,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((cache_ptr->max_cache_size != (512 * 1024)) || (cache_ptr->min_clean_size != (256 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after initialization.\n"; } } @@ -21872,7 +21866,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -21888,7 +21882,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -21901,19 +21895,19 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 10; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 2.\n"; } } @@ -21923,7 +21917,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 1.\n"; } } @@ -21939,14 +21933,14 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 0) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 1.\n"; } } if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, MEDIUM_ENTRY_TYPE, i); @@ -21962,7 +21956,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) (cache_ptr->min_clean_size != (4 * 1024 * 1024)) || (cache_ptr->index_size != (1 * 1000 * MEDIUM_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 0.\n"; } } @@ -21975,7 +21969,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) j = 2; while (pass && (j <= 10)) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = (j - 2) * 1000; while (pass && (i < (j - 1) * 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -21988,7 +21982,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->epoch_markers_active != j)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 2.\n"; } @@ -22004,7 +21998,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 9000; while (pass && (i < 10000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -22020,7 +22014,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) (cache_ptr->min_clean_size != ((10 * 1000 * SMALL_ENTRY_SIZE + MEDIUM_ENTRY_SIZE) / 2)) || (cache_ptr->index_size != (10 * 1000 * SMALL_ENTRY_SIZE + MEDIUM_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 1.\n"; } } @@ -22036,7 +22030,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -22052,7 +22046,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22065,19 +22059,19 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 1; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 3.\n"; } } @@ -22087,7 +22081,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 2.\n"; } } @@ -22101,7 +22095,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 1) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 3.\n"; } } @@ -22112,7 +22106,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) */ if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 9000; while (pass && (i < 10000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -22127,7 +22121,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) (cache_ptr->min_clean_size != (256 * 1024)) || (cache_ptr->index_size != (1 * 1000 * SMALL_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 2.\n"; } } @@ -22141,7 +22135,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 1) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 4.\n"; } } @@ -22154,7 +22148,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -22170,7 +22164,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22183,19 +22177,19 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 1; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 4.\n"; } } @@ -22205,7 +22199,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((cache_ptr->max_cache_size != (8 * 1024 * 1024)) || (cache_ptr->min_clean_size != (4 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after set resize re-config 3.\n"; } } @@ -22216,7 +22210,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 0) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 5.\n"; } } @@ -22232,7 +22226,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -22248,7 +22242,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22261,19 +22255,19 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 10; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 5.\n"; } } @@ -22284,7 +22278,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 0) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 6.\n"; } } @@ -22298,7 +22292,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) j = 1; while (pass && (j <= 10)) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = (j - 1) * 1000; while (pass && (i < j * 1000)) { protect_entry(file_ptr, SMALL_ENTRY_TYPE, i); @@ -22311,7 +22305,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if ((!rpt_fcn_called) || (rpt_status != in_spec) || (cache_ptr->epoch_markers_active != j)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 7.\n"; } @@ -22328,7 +22322,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 10) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 8.\n"; } } @@ -22341,7 +22335,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; auto_size_ctl.rpt_fcn = test_rpt_fcn; - auto_size_ctl.set_initial_size = TRUE; + auto_size_ctl.set_initial_size = true; auto_size_ctl.initial_size = 8 * 1024 * 1024; auto_size_ctl.min_clean_fraction = 0.5; @@ -22357,7 +22351,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.increment = 2.0; - auto_size_ctl.apply_max_increment = TRUE; + auto_size_ctl.apply_max_increment = true; auto_size_ctl.max_increment = (4 * 1024 * 1024); auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22370,19 +22364,19 @@ check_auto_cache_resize_epoch_markers(unsigned paged) auto_size_ctl.decrement = 0.5; - auto_size_ctl.apply_max_decrement = FALSE; + auto_size_ctl.apply_max_decrement = false; auto_size_ctl.max_decrement = (1 * 1024 * 1024); auto_size_ctl.epochs_before_eviction = 10; - auto_size_ctl.apply_empty_reserve = FALSE; + auto_size_ctl.apply_empty_reserve = false; auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 6.\n"; } } @@ -22393,7 +22387,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (cache_ptr->epoch_markers_active != 0) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected # of epoch markers 9.\n"; } } @@ -22410,7 +22404,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) (cache_ptr->min_clean_size != (4 * 1024 * 1024)) || (cache_ptr->index_size != (10 * 1000 * SMALL_ENTRY_SIZE)) || (cache_ptr->index_len != 10000)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache size change results 3.\n"; } } @@ -22420,7 +22414,7 @@ check_auto_cache_resize_epoch_markers(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (show_progress) @@ -22463,7 +22457,7 @@ check_auto_cache_resize_input_errs(unsigned paged) /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ test_rpt_fcn, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (512 * 1024), /* double min_clean_fraction = */ 0.5, @@ -22479,7 +22473,7 @@ check_auto_cache_resize_input_errs(unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -22493,12 +22487,12 @@ check_auto_cache_resize_input_errs(unsigned paged) /* double decrement = */ 0.1, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; H5C_auto_size_ctl_t invalid_auto_size_ctl; @@ -22509,7 +22503,7 @@ check_auto_cache_resize_input_errs(unsigned paged) else TESTING("automatic cache resize input errors"); - pass = TRUE; + pass = true; /* allocate a cache, and set a reference automatic cache control * configuration. Then feed H5C_set_cache_auto_resize_config() @@ -22531,7 +22525,7 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -22540,7 +22534,7 @@ check_auto_cache_resize_input_errs(unsigned paged) if ((cache_ptr->max_cache_size != (512 * 1024)) || (cache_ptr->min_clean_size != (256 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after initialization.\n"; } } @@ -22551,12 +22545,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 1."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 1."; } } @@ -22566,7 +22560,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -22582,7 +22576,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22595,19 +22589,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(NULL, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted NULL cache_ptr.\n"; } } @@ -22618,12 +22612,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 2."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 2."; } } @@ -22635,7 +22629,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = -1; /* INVALID */ invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -22651,7 +22645,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22664,19 +22658,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad version.\n"; } } @@ -22687,12 +22681,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 3."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 3."; } } @@ -22704,7 +22698,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 16 * 1024 * 1024 + 1; /* INVALID */ @@ -22721,7 +22715,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22734,19 +22728,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad init size 1.\n"; } } @@ -22757,12 +22751,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 4."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 4."; } } @@ -22772,7 +22766,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 1 * 1024 * 1024 - 1; /* INVALID */ @@ -22789,7 +22783,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22802,19 +22796,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad init size 2.\n"; } } @@ -22825,12 +22819,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 5."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 5."; } } @@ -22842,7 +22836,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 1.00001; /* INVALID */ @@ -22858,7 +22852,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22871,19 +22865,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad min clean frac 1.\n"; } } @@ -22894,12 +22888,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 6."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 6."; } } @@ -22909,7 +22903,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = -0.00001; /* INVALID */ @@ -22925,7 +22919,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -22938,19 +22932,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad min clean frac 2.\n"; } } @@ -22961,12 +22955,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 7."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 7."; } } @@ -22978,7 +22972,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -22995,7 +22989,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23008,19 +23002,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad max_size.\n"; } } @@ -23031,12 +23025,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 8."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 8."; } } @@ -23046,7 +23040,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -23062,7 +23056,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23075,19 +23069,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad size pair.\n"; } } @@ -23098,12 +23092,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 9."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 9."; } } @@ -23113,7 +23107,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -23129,7 +23123,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23142,19 +23136,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad min_size.\n"; } } @@ -23165,12 +23159,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 10."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 10."; } } @@ -23182,7 +23176,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23199,7 +23193,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23212,19 +23206,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad epoch len 1.\n"; } } @@ -23235,12 +23229,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 11."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 11."; } } @@ -23250,7 +23244,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23267,7 +23261,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23280,19 +23274,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad epoch len 2.\n"; } } @@ -23303,12 +23297,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 12."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 12."; } } @@ -23320,7 +23314,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23336,7 +23330,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23349,19 +23343,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad incr_mode 1.\n"; } } @@ -23372,12 +23366,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 13."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 13."; } } @@ -23387,7 +23381,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23403,7 +23397,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23416,19 +23410,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad incr_mode 2.\n"; } } @@ -23439,12 +23433,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 14."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 14."; } } @@ -23456,7 +23450,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -23472,7 +23466,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23485,19 +23479,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad upper threshold.\n"; } } @@ -23508,12 +23502,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 15."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 15."; } } @@ -23523,7 +23517,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -23539,7 +23533,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23552,19 +23546,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad threshold pair.\n"; } } @@ -23575,12 +23569,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 16."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 16."; } } @@ -23590,7 +23584,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.5; @@ -23606,7 +23600,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23619,19 +23613,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad lower threshold.\n"; } } @@ -23642,12 +23636,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 17."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 17."; } } @@ -23659,7 +23653,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23675,7 +23669,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 0.99999; /* INVALID */ - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -23688,19 +23682,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.5; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad increment.\n"; } } @@ -23711,12 +23705,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 18."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 18."; } } @@ -23728,7 +23722,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23744,7 +23738,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = (enum H5C_cache_flash_incr_mode) - 1; /* INVALID */ @@ -23757,19 +23751,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad flash_incr_mode.\n"; } } @@ -23780,12 +23774,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 19."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 19."; } } @@ -23797,7 +23791,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23813,7 +23807,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -23826,19 +23820,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad flash_multiple(1).\n"; } } @@ -23849,12 +23843,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 20."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 20."; } } @@ -23864,7 +23858,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23880,7 +23874,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -23893,19 +23887,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad flash_multiple(2).\n"; } } @@ -23916,12 +23910,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 21."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 21."; } } @@ -23933,7 +23927,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -23949,7 +23943,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -23962,19 +23956,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad flash_threshold(1).\n"; } } @@ -23985,12 +23979,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 22."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 22."; } } @@ -24000,7 +23994,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24016,7 +24010,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__add_space; @@ -24029,19 +24023,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad flash_threshold(2).\n"; } } @@ -24052,12 +24046,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 23."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 23."; } } @@ -24069,7 +24063,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24085,7 +24079,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24098,19 +24092,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad decr_mode 1.\n"; } } @@ -24121,12 +24115,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 24."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 24."; } } @@ -24136,7 +24130,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24152,7 +24146,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24165,19 +24159,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad decr_mode 2.\n"; } } @@ -24188,12 +24182,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 25."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 25."; } } @@ -24205,7 +24199,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24221,7 +24215,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24234,19 +24228,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 1.000001; /* INVALID */ - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad decrement 1.\n"; } } @@ -24257,12 +24251,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 26."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 26."; } } @@ -24272,7 +24266,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24288,7 +24282,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24301,19 +24295,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = -0.000001; /* INVALID */ - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad decrement 2.\n"; } } @@ -24324,12 +24318,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 27."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 27."; } } @@ -24341,7 +24335,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24357,7 +24351,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24370,19 +24364,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 0; /* INVALID */ - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad epochs_before_eviction 1.\n"; } } @@ -24393,12 +24387,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 28."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 28."; } } @@ -24408,7 +24402,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24424,7 +24418,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24437,19 +24431,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = H5C__MAX_EPOCH_MARKERS + 1; /* INVALID */ - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad epochs_before_eviction 2.\n"; } } @@ -24460,12 +24454,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 29."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 29."; } } @@ -24477,7 +24471,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24493,7 +24487,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24506,19 +24500,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = 3; - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = -0.0000001; /* INVALID */ result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad empty_reserve 1.\n"; } } @@ -24529,12 +24523,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 30."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 30."; } } @@ -24544,7 +24538,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.version = H5C__CURR_AUTO_SIZE_CTL_VER; invalid_auto_size_ctl.rpt_fcn = NULL; - invalid_auto_size_ctl.set_initial_size = TRUE; + invalid_auto_size_ctl.set_initial_size = true; invalid_auto_size_ctl.initial_size = 4 * 1024 * 1024; invalid_auto_size_ctl.min_clean_fraction = 0.1; @@ -24560,7 +24554,7 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.increment = 2.0; - invalid_auto_size_ctl.apply_max_increment = TRUE; + invalid_auto_size_ctl.apply_max_increment = true; invalid_auto_size_ctl.max_increment = (2 * 1024 * 1024); invalid_auto_size_ctl.flash_incr_mode = H5C_flash_incr__off; @@ -24573,19 +24567,19 @@ check_auto_cache_resize_input_errs(unsigned paged) invalid_auto_size_ctl.decrement = 0.9; - invalid_auto_size_ctl.apply_max_decrement = TRUE; + invalid_auto_size_ctl.apply_max_decrement = true; invalid_auto_size_ctl.max_decrement = (1 * 1024 * 1024); invalid_auto_size_ctl.epochs_before_eviction = H5C__MAX_EPOCH_MARKERS + 1; /* INVALID */ - invalid_auto_size_ctl.apply_empty_reserve = TRUE; + invalid_auto_size_ctl.apply_empty_reserve = true; invalid_auto_size_ctl.empty_reserve = 0.05; result = H5C_set_cache_auto_resize_config(cache_ptr, &invalid_auto_size_ctl); if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config accepted bad empty_reserve 2.\n"; } } @@ -24596,12 +24590,12 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed 31."; } - else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, FALSE)) { + else if (!resize_configs_are_equal(&test_auto_size_ctl, &ref_auto_size_ctl, false)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected auto resize config 31."; } } @@ -24616,7 +24610,7 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config accepted NULL cache_ptr.\n"; } } @@ -24627,14 +24621,14 @@ check_auto_cache_resize_input_errs(unsigned paged) if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config accepted NULL config ptr.\n"; } } if (cache_ptr) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -24684,7 +24678,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) H5C_auto_size_ctl_t auto_size_ctl = { /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ NULL, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (1 * 1024 * 1024), /* double min_clean_fraction = */ 0.5, @@ -24700,7 +24694,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -24714,12 +24708,12 @@ check_auto_cache_resize_aux_fcns(unsigned paged) /* double decrement = */ 0.9, - /* hbool_t apply_max_decrement = */ TRUE, + /* bool apply_max_decrement = */ true, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 3, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.5}; if (paged) @@ -24727,7 +24721,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) else TESTING("automatic cache resize auxiliary functions"); - pass = TRUE; + pass = true; /* allocate a cache, and then test the various auxiliary functions. */ @@ -24746,7 +24740,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -24755,7 +24749,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if ((cache_ptr->max_cache_size != (1 * 1024 * 1024)) || (cache_ptr->min_clean_size != (512 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "bad cache size after initialization.\n"; } } @@ -24769,7 +24763,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if ((H5C_get_cache_hit_rate(NULL, &hit_rate) != FAIL) || (H5C_get_cache_hit_rate(cache_ptr, NULL) != FAIL)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate accepts bad params.\n"; } } @@ -24780,19 +24774,19 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate failed.\n"; } else if (!H5_DBL_ABS_EQUAL(hit_rate, 0.0)) { /* i.e. hit_rate != 0.0 */ - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate returned unexpected hit rate 1.\n"; } } if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, PICO_ENTRY_TYPE, i); @@ -24811,29 +24805,29 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate failed.\n"; } else if (!H5_DBL_ABS_EQUAL(hit_rate, 0.0)) { /* i.e. hit_rate != 0.0 */ - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate returned unexpected hit rate 2.\n"; } else if ((cache_ptr->cache_accesses != 1000) || (cache_ptr->cache_hits != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache hit rate stats.\n"; } else if (rpt_fcn_called) { - pass = FALSE; + pass = false; failure_mssg = "Report function called?.\n"; } } if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, PICO_ENTRY_TYPE, 0); @@ -24852,22 +24846,22 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate failed.\n"; } else if (!H5_DBL_ABS_EQUAL(hit_rate, 0.5)) { /* i.e. hit_rate != 0.5 */ - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate returned unexpected hit rate 3.\n"; } else if ((cache_ptr->cache_accesses != 2000) || (cache_ptr->cache_hits != 1000)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache hit rate stats.\n"; } else if (rpt_fcn_called) { - pass = FALSE; + pass = false; failure_mssg = "Report function called?.\n"; } } @@ -24878,12 +24872,12 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_reset_cache_hit_rate_stats accepted NULL cache_ptr.\n"; } else if ((cache_ptr->cache_accesses != 2000) || (cache_ptr->cache_hits != 1000)) { - pass = FALSE; + pass = false; failure_mssg = "Failed call to H5C_reset_cache_hit_rate_stats altered stats?\n"; } } @@ -24894,19 +24888,19 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_reset_cache_hit_rate_stats failed.\n"; } else if ((cache_ptr->cache_accesses != 0) || (cache_ptr->cache_hits != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache hit rate stats.\n"; } } if (pass) { - rpt_fcn_called = FALSE; + rpt_fcn_called = false; i = 0; while (pass && (i < 1000)) { protect_entry(file_ptr, PICO_ENTRY_TYPE, i + 500); @@ -24925,22 +24919,22 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate failed.\n"; } else if (!H5_DBL_ABS_EQUAL(hit_rate, 0.5)) { /* i.e. hit_rate != 0.5 */ - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_hit_rate returned unexpected hit rate 4.\n"; } else if ((cache_ptr->cache_accesses != 1000) || (cache_ptr->cache_hits != 500)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache hit rate stats.\n"; } else if (rpt_fcn_called) { - pass = FALSE; + pass = false; failure_mssg = "Report function called?.\n"; } } @@ -24957,7 +24951,7 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size accepted NULL cache_ptr.\n"; } } @@ -24973,27 +24967,27 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 1.\n"; } else if (max_size != (1 * 1024 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected max_size 1.\n"; } else if (min_clean_size != (512 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected min_clean_size 1.\n"; } else if (cur_size != (1500 * PICO_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_size 1.\n"; } else if (cur_num_entries != 1500) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_num_entries 1.\n"; } } @@ -25021,27 +25015,27 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 2.\n"; } else if (max_size != (1 * 1024 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected max_size 2.\n"; } else if (min_clean_size != (512 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected min_clean_size 2.\n"; } else if (cur_size != ((1500 * PICO_ENTRY_SIZE) + MONSTER_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_size 2.\n"; } else if (cur_num_entries != 1501) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_num_entries 2.\n"; } } @@ -25054,12 +25048,12 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 3.\n"; } else if (max_size != (1 * 1024 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected max_size 3.\n"; } } @@ -25072,12 +25066,12 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 4.\n"; } else if (min_clean_size != (512 * 1024)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected min_clean_size 4.\n"; } } @@ -25090,12 +25084,12 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 5.\n"; } else if (cur_size != ((1500 * PICO_ENTRY_SIZE) + MONSTER_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_size 5.\n"; } } @@ -25108,19 +25102,19 @@ check_auto_cache_resize_aux_fcns(unsigned paged) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size failed 6.\n"; } else if (cur_num_entries != 1501) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_size reports unexpected cur_num_entries 2.\n"; } } if (cache_ptr) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -25162,14 +25156,14 @@ check_auto_cache_resize_aux_fcns(unsigned paged) */ static unsigned -check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) +check_metadata_blizzard_absence(bool fill_via_insertion, unsigned paged) { struct expected_entry_status *expected = NULL; int entry_type = HUGE_ENTRY_TYPE; size_t entry_size = HUGE_ENTRY_SIZE; /* 16 KB */ H5F_t *file_ptr = NULL; H5C_t *cache_ptr = NULL; - hbool_t show_progress = FALSE; + bool show_progress = false; int32_t checkpoint = 0; int32_t entry_idx = 0; int32_t i; @@ -25177,12 +25171,12 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) /* Expected deserialized status of entries depends on how they get into * the cache. Insertions = not deserialized, protect/unprotect = deserialized. */ - hbool_t deserialized = (hbool_t) !(fill_via_insertion); + bool deserialized = (bool)!(fill_via_insertion); expected = malloc(150 * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -25194,14 +25188,14 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) expected[i].entry_type = HUGE_ENTRY_TYPE; expected[i].entry_index = (int)i; expected[i].size = HUGE_ENTRY_SIZE; - expected[i].in_cache = FALSE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = FALSE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = FALSE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = false; + expected[i].at_main_addr = true; + expected[i].is_dirty = false; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = false; + expected[i].serialized = false; + expected[i].destroyed = false; memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type)); memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx)); @@ -25210,10 +25204,10 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } - pass = TRUE; + pass = true; } reset_entries(); @@ -25245,7 +25239,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "bad return from cache initialization.\n"; } else @@ -25304,8 +25298,8 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -25370,12 +25364,12 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) */ /* entry w/ index 0 has now been flushed and is now clean. */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; /* entry w/ index 26 is now in the cache and dirty. */ - expected[26].in_cache = TRUE; - expected[26].is_dirty = TRUE; + expected[26].in_cache = true; + expected[26].is_dirty = true; expected[26].deserialized = (unsigned char)deserialized; /* verify the status */ @@ -25424,12 +25418,12 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) */ /* entry w/ index 1 has now been flushed and is now clean. */ - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; /* entry w/ index 27 is now in the cache and dirty. */ - expected[27].in_cache = TRUE; - expected[27].is_dirty = TRUE; + expected[27].in_cache = true; + expected[27].is_dirty = true; expected[27].deserialized = (unsigned char)deserialized; /* verify the status */ @@ -25470,11 +25464,11 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) * entry currently getting inserted is now in the cache and * dirty. */ - expected[entry_idx - 26].is_dirty = FALSE; - expected[entry_idx - 26].serialized = TRUE; + expected[entry_idx - 26].is_dirty = false; + expected[entry_idx - 26].serialized = true; - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; /* verify the status */ @@ -25485,9 +25479,9 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) } /* Verify that the cache is now full */ - if (cache_ptr->cache_full != TRUE) { + if (cache_ptr->cache_full != true) { - pass = FALSE; + pass = false; failure_mssg = "cache not completely filled.\n"; } } @@ -25546,18 +25540,18 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) */ /* entry w/ index 0 has been evicted. */ - expected[0].in_cache = FALSE; - expected[0].destroyed = TRUE; + expected[0].in_cache = false; + expected[0].destroyed = true; /* entries w/ indices 24,25 have now been flushed and are clean. */ - expected[24].is_dirty = FALSE; - expected[24].serialized = TRUE; - expected[25].is_dirty = FALSE; - expected[25].serialized = TRUE; + expected[24].is_dirty = false; + expected[24].serialized = true; + expected[25].is_dirty = false; + expected[25].serialized = true; /* entry w/ index 50 is now in the cache and dirty */ - expected[50].in_cache = TRUE; - expected[50].is_dirty = TRUE; + expected[50].in_cache = true; + expected[50].is_dirty = true; expected[50].deserialized = (unsigned char)deserialized; /* verify the status */ @@ -25600,13 +25594,13 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) } /* This past inserted entry is now in the cache and dirty */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; /* The entry inserted 50 insertions ago has been evicted */ - expected[entry_idx - 50].in_cache = FALSE; - expected[entry_idx - 50].destroyed = TRUE; + expected[entry_idx - 50].in_cache = false; + expected[entry_idx - 50].destroyed = true; /* If the newly inserted entry is among the first 24 * insertions in this loop, then the insertion will @@ -25614,8 +25608,8 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) * 25 insertions ago. */ if (entry_idx < 75) { - expected[entry_idx - 25].is_dirty = FALSE; - expected[entry_idx - 25].serialized = TRUE; + expected[entry_idx - 25].is_dirty = false; + expected[entry_idx - 25].serialized = true; } /* If the newly inserted entry is among the last * 25 insertions in this loop, then the insertion will @@ -25626,8 +25620,8 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) * flush-then-evict, it switches to evict-then-flush. */ else { - expected[entry_idx - 26].is_dirty = FALSE; - expected[entry_idx - 26].serialized = TRUE; + expected[entry_idx - 26].is_dirty = false; + expected[entry_idx - 26].serialized = true; } /* Verify this expected status */ @@ -25672,9 +25666,9 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) */ flush_cache(file_ptr, /* H5F_t * file_ptr */ - FALSE, /* hbool_t destory_entries */ - FALSE, /* hbool_t dump_stats */ - FALSE); /* hbool_t dump_detailed_stats */ + false, /* bool destory_entries */ + false, /* bool dump_stats */ + false); /* bool dump_detailed_stats */ /* Verify that the cache is clean */ verify_clean(); @@ -25688,8 +25682,8 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) /* entries w/ indices 74-99 have been flushed. */ for (i = 74; i < 100; i++) { - expected[i].is_dirty = FALSE; - expected[i].serialized = TRUE; + expected[i].is_dirty = false; + expected[i].serialized = true; } verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ 0, /* int tag */ @@ -25729,13 +25723,13 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) } /* This past inserted entry is now in the cache and dirty */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; /* The entry with ID minus 50 will have been evicted */ - expected[entry_idx - 50].in_cache = FALSE; - expected[entry_idx - 50].destroyed = TRUE; + expected[entry_idx - 50].in_cache = false; + expected[entry_idx - 50].destroyed = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -25777,16 +25771,16 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) */ /* entry w/ index 76 has been evicted. */ - expected[76].in_cache = FALSE; - expected[76].destroyed = TRUE; + expected[76].in_cache = false; + expected[76].destroyed = true; /* entry w/ index 100 has now been flushed and is now clean. */ - expected[100].is_dirty = FALSE; - expected[100].serialized = TRUE; + expected[100].is_dirty = false; + expected[100].serialized = true; /* entry w/ index 26 is now in the cache and dirty. */ - expected[126].in_cache = TRUE; - expected[126].is_dirty = TRUE; + expected[126].in_cache = true; + expected[126].is_dirty = true; expected[126].deserialized = (unsigned char)deserialized; /* verify the status */ @@ -25822,17 +25816,17 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) } /* This past inserted entry is now in the cache and dirty */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; /* The entry with ID minus 50 will have been evicted */ - expected[entry_idx - 50].in_cache = FALSE; - expected[entry_idx - 50].destroyed = TRUE; + expected[entry_idx - 50].in_cache = false; + expected[entry_idx - 50].destroyed = true; /* The entry with ID minus 26 will now be clean */ - expected[entry_idx - 26].is_dirty = FALSE; - expected[entry_idx - 26].serialized = TRUE; + expected[entry_idx - 26].is_dirty = false; + expected[entry_idx - 26].serialized = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -25848,7 +25842,7 @@ check_metadata_blizzard_absence(hbool_t fill_via_insertion, unsigned paged) if (cache_ptr) { /* We're done with testing. We can take down the cache. */ - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); reset_entries(); } @@ -25892,11 +25886,11 @@ check_flush_deps(unsigned paged) { /* entry entry in at main flush dep flush dep child flush flush flush */ /* type: index: size: cache: addr: dirty: prot: pinned: dsrlzd: srlzd: dest: par type[]: par idx[]: dep npart: dep nchd: dep ndirty chd: order: corked: */ - { PICO_ENTRY_TYPE, 0, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 1, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 2, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 3, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 4, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE} + { PICO_ENTRY_TYPE, 0, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 1, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 2, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 3, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 4, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false} }; /* clang-format on */ @@ -25905,7 +25899,7 @@ check_flush_deps(unsigned paged) else TESTING("flush dependencies"); - pass = TRUE; + pass = true; /* allocate a cache, build up flush dependency hierarchy and tear it down. * Verify that all performs as expected. @@ -25928,8 +25922,8 @@ check_flush_deps(unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[u].in_cache = TRUE; - expected[u].is_dirty = TRUE; + expected[u].in_cache = true; + expected[u].is_dirty = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -25944,7 +25938,7 @@ check_flush_deps(unsigned paged) /* Create flush dependency between entries 0 (child) & 1 (parent) */ { - hbool_t in_cache, is_flush_dep_parent, is_flush_dep_child; + bool in_cache, is_flush_dep_parent, is_flush_dep_child; test_entry_t *entry_ptr; protect_entry(file_ptr, entry_type, 1); @@ -25993,8 +25987,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26024,8 +26018,8 @@ check_flush_deps(unsigned paged) * after destroy flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -26063,8 +26057,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 2; expected[2].flush_dep_ndirty_chd = 2; @@ -26099,8 +26093,8 @@ check_flush_deps(unsigned paged) */ expected[0].flush_dep_npar = 0; expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -26133,8 +26127,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26160,8 +26154,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -26187,8 +26181,8 @@ check_flush_deps(unsigned paged) expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 3; expected[2].flush_dep_npar = 1; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; expected[3].flush_dep_ndirty_chd = 1; @@ -26218,8 +26212,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[2].flush_dep_npar = 0; - expected[3].is_protected = FALSE; - expected[3].is_pinned = FALSE; + expected[3].is_protected = false; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; expected[3].flush_dep_ndirty_chd = 0; @@ -26246,8 +26240,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -26274,8 +26268,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -26308,8 +26302,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26335,8 +26329,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -26362,8 +26356,8 @@ check_flush_deps(unsigned paged) expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 3; expected[2].flush_dep_npar = 1; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; expected[3].flush_dep_ndirty_chd = 1; @@ -26393,8 +26387,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -26421,8 +26415,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -26449,8 +26443,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[2].flush_dep_npar = 0; - expected[3].is_protected = FALSE; - expected[3].is_pinned = FALSE; + expected[3].is_protected = false; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; expected[3].flush_dep_ndirty_chd = 0; @@ -26483,8 +26477,8 @@ check_flush_deps(unsigned paged) expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 3; expected[2].flush_dep_npar = 1; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; expected[3].flush_dep_ndirty_chd = 1; @@ -26510,8 +26504,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -26537,8 +26531,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26568,8 +26562,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[2].flush_dep_npar = 0; - expected[3].is_protected = FALSE; - expected[3].is_pinned = FALSE; + expected[3].is_protected = false; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; expected[3].flush_dep_ndirty_chd = 0; @@ -26596,8 +26590,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -26624,8 +26618,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -26658,8 +26652,8 @@ check_flush_deps(unsigned paged) expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 3; expected[2].flush_dep_npar = 1; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; expected[3].flush_dep_ndirty_chd = 1; @@ -26685,8 +26679,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -26712,8 +26706,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26743,8 +26737,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -26771,8 +26765,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -26799,8 +26793,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[2].flush_dep_npar = 0; - expected[3].is_protected = FALSE; - expected[3].is_pinned = FALSE; + expected[3].is_protected = false; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; expected[3].flush_dep_ndirty_chd = 0; @@ -26832,8 +26826,8 @@ check_flush_deps(unsigned paged) expected[u].flush_dep_par_type[0] = entry_type; expected[u].flush_dep_par_idx[0] = 4; expected[u].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd++; expected[4].flush_dep_ndirty_chd++; @@ -26873,8 +26867,8 @@ check_flush_deps(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[4].is_protected = FALSE; - expected[4].is_pinned = FALSE; + expected[4].is_protected = false; + expected[4].is_pinned = false; } /* end if */ /* Verify the status */ @@ -26909,8 +26903,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -26936,8 +26930,8 @@ check_flush_deps(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; expected[4].flush_dep_ndirty_chd = 1; @@ -26963,8 +26957,8 @@ check_flush_deps(unsigned paged) expected[4].flush_dep_par_type[0] = entry_type; expected[4].flush_dep_par_idx[0] = 0; expected[4].flush_dep_npar = 1; - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 1; expected[0].flush_dep_ndirty_chd = 1; @@ -26994,8 +26988,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[4].flush_dep_npar = 0; - expected[0].is_protected = FALSE; - expected[0].is_pinned = FALSE; + expected[0].is_protected = false; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; expected[0].flush_dep_ndirty_chd = 0; @@ -27022,8 +27016,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_protected = FALSE; - expected[4].is_pinned = FALSE; + expected[4].is_protected = false; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; expected[4].flush_dep_ndirty_chd = 0; @@ -27050,8 +27044,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27086,8 +27080,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -27113,8 +27107,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -27140,8 +27134,8 @@ check_flush_deps(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; expected[4].flush_dep_ndirty_chd = 1; @@ -27211,8 +27205,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_protected = FALSE; - expected[4].is_pinned = FALSE; + expected[4].is_protected = false; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; expected[4].flush_dep_ndirty_chd = 0; @@ -27239,8 +27233,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -27267,8 +27261,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27303,8 +27297,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -27330,8 +27324,8 @@ check_flush_deps(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -27357,8 +27351,8 @@ check_flush_deps(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; expected[4].flush_dep_ndirty_chd = 1; @@ -27428,8 +27422,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_protected = FALSE; - expected[4].is_pinned = FALSE; + expected[4].is_protected = false; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; expected[4].flush_dep_ndirty_chd = 0; @@ -27456,8 +27450,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -27484,8 +27478,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27522,8 +27516,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -27557,8 +27551,8 @@ check_flush_deps(unsigned paged) * after destroy flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27595,8 +27589,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -27638,8 +27632,8 @@ check_flush_deps(unsigned paged) * after destroy flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27672,8 +27666,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -27699,8 +27693,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[1] = entry_type; expected[0].flush_dep_par_idx[1] = 2; expected[0].flush_dep_npar = 2; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[2].flush_dep_ndirty_chd = 1; @@ -27732,8 +27726,8 @@ check_flush_deps(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 2; expected[0].flush_dep_npar = 1; - expected[1].is_protected = FALSE; - expected[1].is_pinned = FALSE; + expected[1].is_protected = false; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[1].flush_dep_ndirty_chd = 0; @@ -27760,8 +27754,8 @@ check_flush_deps(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[2].is_protected = FALSE; - expected[2].is_pinned = FALSE; + expected[2].is_protected = false; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[2].flush_dep_ndirty_chd = 0; @@ -27776,7 +27770,7 @@ check_flush_deps(unsigned paged) done: if (file_ptr) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -27810,7 +27804,7 @@ check_flush_deps_err(unsigned paged) else TESTING("flush dependency errors"); - pass = TRUE; + pass = true; /* Loop over test cases, check for various errors in configuring flush * dependencies. Verify that all performs as expected. @@ -28031,7 +28025,7 @@ check_flush_deps_err(unsigned paged) CACHE_ERROR("Unknown test case!") } /* end switch */ - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (!pass) CACHE_ERROR("takedown_cache failed") file_ptr = NULL; @@ -28039,7 +28033,7 @@ check_flush_deps_err(unsigned paged) done: if (file_ptr) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -28075,11 +28069,11 @@ check_flush_deps_order(unsigned paged) { /* entry entry in at main flush dep flush dep child flush flush flush */ /* type: index: size: cache: addr: dirty: prot: pinned: dsrlzd: srlzd: dest: par type[]: par idx[]: dep npart: dep nchd: dep ndirty chd: order: corked: */ - { PICO_ENTRY_TYPE, 0, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 1, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 2, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 3, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { PICO_ENTRY_TYPE, 4, PICO_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE} + { PICO_ENTRY_TYPE, 0, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 1, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 2, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 3, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { PICO_ENTRY_TYPE, 4, PICO_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false} }; /* clang-format on */ @@ -28088,7 +28082,7 @@ check_flush_deps_order(unsigned paged) else TESTING("flush dependencies flush order"); - pass = TRUE; + pass = true; /* allocate a cache, build up flush dependency hierarchy and tear it down. * Verify that all performs as expected. @@ -28110,8 +28104,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[u].in_cache = TRUE; - expected[u].is_dirty = TRUE; + expected[u].in_cache = true; + expected[u].is_dirty = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -28140,8 +28134,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[1].flush_dep_ndirty_chd = 1; @@ -28156,8 +28150,8 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28176,20 +28170,20 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[1].is_protected = FALSE; + expected[1].is_protected = false; expected[1].flush_dep_ndirty_chd = 0; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[2].is_dirty = false; + expected[2].serialized = true; + expected[3].is_dirty = false; + expected[3].serialized = true; + expected[4].is_dirty = false; + expected[4].serialized = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -28210,7 +28204,7 @@ check_flush_deps_order(unsigned paged) * after destroy flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -28237,8 +28231,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after creating flush dependency */ - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 1; expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 0; @@ -28255,8 +28249,8 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28266,15 +28260,15 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0 & 1 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, TRUE); - dirty_entry(file_ptr, entry_type, 1, FALSE); + dirty_entry(file_ptr, entry_type, 0, true); + dirty_entry(file_ptr, entry_type, 1, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; /* Reset index for tracking flush order */ @@ -28287,12 +28281,12 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 1; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 0; /* Verify the status */ @@ -28313,7 +28307,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; expected[1].flush_dep_npar = 0; @@ -28353,8 +28347,8 @@ check_flush_deps_order(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 2; /* Verify the status */ @@ -28368,9 +28362,9 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28380,18 +28374,18 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0, 1 & 2 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, FALSE); - dirty_entry(file_ptr, entry_type, 2, TRUE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, false); + dirty_entry(file_ptr, entry_type, 2, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; /* Reset index for tracking flush order */ @@ -28404,16 +28398,16 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 2; - expected[2].is_protected = FALSE; + expected[2].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -28439,7 +28433,7 @@ check_flush_deps_order(unsigned paged) */ expected[0].flush_dep_npar = 0; expected[1].flush_dep_npar = 0; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -28472,8 +28466,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after creating flush dependency */ - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 2; expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 0; @@ -28493,9 +28487,9 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28505,18 +28499,18 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0, 1 & 2 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, TRUE); - dirty_entry(file_ptr, entry_type, 1, FALSE); - dirty_entry(file_ptr, entry_type, 2, FALSE); + dirty_entry(file_ptr, entry_type, 0, true); + dirty_entry(file_ptr, entry_type, 1, false); + dirty_entry(file_ptr, entry_type, 2, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; /* Reset index for tracking flush order */ @@ -28529,15 +28523,15 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 2; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 0; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 1; /* Verify the status */ @@ -28562,7 +28556,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; expected[1].flush_dep_npar = 0; expected[2].flush_dep_npar = 0; @@ -28596,8 +28590,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -28622,8 +28616,8 @@ check_flush_deps_order(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; /* Verify the status */ @@ -28648,8 +28642,8 @@ check_flush_deps_order(unsigned paged) expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 3; expected[2].flush_dep_npar = 1; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; /* Verify the status */ @@ -28663,10 +28657,10 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28690,21 +28684,21 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-3 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, TRUE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; /* Reset index for tracking flush order */ @@ -28717,20 +28711,20 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 2; - expected[2].is_protected = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].serialized = true; expected[3].flush_order = 3; - expected[3].is_protected = FALSE; + expected[3].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -28751,7 +28745,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[2].flush_dep_npar = 0; - expected[3].is_pinned = FALSE; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; /* Verify the status */ @@ -28770,7 +28764,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -28789,7 +28783,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -28818,8 +28812,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after creating flush dependency */ - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 1; expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 0; @@ -28844,8 +28838,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after creating flush dependency */ - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; expected[2].flush_dep_par_type[0] = entry_type; expected[2].flush_dep_par_idx[0] = 1; @@ -28870,8 +28864,8 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after creating flush dependency */ - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 2; @@ -28888,10 +28882,10 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -28915,21 +28909,21 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-3 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, TRUE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); + dirty_entry(file_ptr, entry_type, 0, true); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; /* Reset index for tracking flush order */ @@ -28942,20 +28936,20 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 3; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 2; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 1; - expected[2].is_protected = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 0; /* Verify the status */ @@ -28976,7 +28970,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; expected[3].flush_dep_npar = 0; @@ -28995,7 +28989,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; expected[2].flush_dep_npar = 0; @@ -29014,7 +29008,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; expected[1].flush_dep_npar = 0; @@ -29046,8 +29040,8 @@ check_flush_deps_order(unsigned paged) expected[u].flush_dep_par_type[0] = entry_type; expected[u].flush_dep_par_idx[0] = 4; expected[u].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = u + 1; /* Verify the status */ @@ -29062,11 +29056,11 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -29076,24 +29070,24 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-4 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, FALSE); - dirty_entry(file_ptr, entry_type, 2, FALSE); - dirty_entry(file_ptr, entry_type, 3, FALSE); - dirty_entry(file_ptr, entry_type, 4, TRUE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, false); + dirty_entry(file_ptr, entry_type, 2, false); + dirty_entry(file_ptr, entry_type, 3, false); + dirty_entry(file_ptr, entry_type, 4, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; - expected[4].serialized = FALSE; + expected[4].serialized = false; expected[4].flush_order = -1; /* Reset index for tracking flush order */ @@ -29106,22 +29100,22 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 2; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 3; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[4].is_dirty = false; + expected[4].serialized = true; expected[4].flush_order = 4; - expected[4].is_protected = FALSE; + expected[4].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -29150,7 +29144,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[4].is_pinned = FALSE; + expected[4].is_pinned = false; } /* end if */ /* Verify the status */ @@ -29182,8 +29176,8 @@ check_flush_deps_order(unsigned paged) expected[u].flush_dep_par_type[0] = entry_type; expected[u].flush_dep_par_idx[0] = 0; expected[u].flush_dep_npar = 1; - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = u; /* Verify the status */ @@ -29198,11 +29192,11 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -29212,24 +29206,24 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-4 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, TRUE); - dirty_entry(file_ptr, entry_type, 1, FALSE); - dirty_entry(file_ptr, entry_type, 2, FALSE); - dirty_entry(file_ptr, entry_type, 3, FALSE); - dirty_entry(file_ptr, entry_type, 4, FALSE); + dirty_entry(file_ptr, entry_type, 0, true); + dirty_entry(file_ptr, entry_type, 1, false); + dirty_entry(file_ptr, entry_type, 2, false); + dirty_entry(file_ptr, entry_type, 3, false); + dirty_entry(file_ptr, entry_type, 4, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; - expected[4].serialized = FALSE; + expected[4].serialized = false; expected[4].flush_order = -1; /* Reset index for tracking flush order */ @@ -29242,21 +29236,21 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 4; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 0; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 1; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 2; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[4].is_dirty = false; + expected[4].serialized = true; expected[4].flush_order = 3; /* Verify the status */ @@ -29286,7 +29280,7 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroying flush dependency */ - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; } /* end if */ /* Verify the status */ @@ -29321,8 +29315,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -29347,8 +29341,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; /* Verify the status */ @@ -29373,8 +29367,8 @@ check_flush_deps_order(unsigned paged) expected[4].flush_dep_par_type[0] = entry_type; expected[4].flush_dep_par_idx[0] = 0; expected[4].flush_dep_npar = 1; - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 1; /* Verify the status */ @@ -29388,11 +29382,11 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -29416,23 +29410,23 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0 & 1, 3 & 4 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, TRUE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); - dirty_entry(file_ptr, entry_type, 4, TRUE); + dirty_entry(file_ptr, entry_type, 0, true); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 3, false); + dirty_entry(file_ptr, entry_type, 4, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; - expected[4].serialized = FALSE; + expected[4].serialized = false; expected[4].flush_order = -1; /* Reset index for tracking flush order */ @@ -29445,23 +29439,23 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 2; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 3; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 0; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[4].is_dirty = false; + expected[4].serialized = true; expected[4].flush_order = 1; - expected[4].is_protected = FALSE; + expected[4].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -29482,7 +29476,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[4].flush_dep_npar = 0; - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; /* Verify the status */ @@ -29501,7 +29495,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_pinned = FALSE; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; /* Verify the status */ @@ -29520,7 +29514,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -29554,8 +29548,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -29580,8 +29574,8 @@ check_flush_deps_order(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; /* Verify the status */ @@ -29606,8 +29600,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; /* Verify the status */ @@ -29641,11 +29635,11 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -29669,24 +29663,24 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-4 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); - dirty_entry(file_ptr, entry_type, 4, TRUE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, false); + dirty_entry(file_ptr, entry_type, 4, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; - expected[4].serialized = FALSE; + expected[4].serialized = false; expected[4].flush_order = -1; /* Reset index for tracking flush order */ @@ -29699,25 +29693,25 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 3; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 4; - expected[2].is_protected = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 1; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[4].is_dirty = false; + expected[4].serialized = true; expected[4].flush_order = 2; - expected[4].is_protected = FALSE; + expected[4].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -29756,7 +29750,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_pinned = FALSE; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; /* Verify the status */ @@ -29775,7 +29769,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -29794,7 +29788,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -29828,8 +29822,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -29854,8 +29848,8 @@ check_flush_deps_order(unsigned paged) expected[1].flush_dep_par_type[0] = entry_type; expected[1].flush_dep_par_idx[0] = 2; expected[1].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; /* Verify the status */ @@ -29880,8 +29874,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 4; expected[3].flush_dep_npar = 1; - expected[4].is_protected = TRUE; - expected[4].is_pinned = TRUE; + expected[4].is_protected = true; + expected[4].is_pinned = true; expected[4].flush_dep_nchd = 1; /* Verify the status */ @@ -29915,11 +29909,11 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 4, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -29943,24 +29937,24 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-4 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); - dirty_entry(file_ptr, entry_type, 4, TRUE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, false); + dirty_entry(file_ptr, entry_type, 4, true); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'serialized' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; - expected[4].serialized = FALSE; + expected[4].serialized = false; expected[4].flush_order = -1; /* Reset index for tracking flush order */ @@ -29973,25 +29967,25 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 4; - expected[2].is_protected = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 2; - expected[4].is_dirty = FALSE; - expected[4].serialized = TRUE; + expected[4].is_dirty = false; + expected[4].serialized = true; expected[4].flush_order = 3; - expected[4].is_protected = FALSE; + expected[4].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30030,7 +30024,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[4].is_pinned = FALSE; + expected[4].is_pinned = false; expected[4].flush_dep_nchd = 0; /* Verify the status */ @@ -30049,7 +30043,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[1].flush_dep_npar = 0; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -30068,7 +30062,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -30101,8 +30095,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[0] = entry_type; expected[0].flush_dep_par_idx[0] = 1; expected[0].flush_dep_npar = 1; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -30127,8 +30121,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[1] = entry_type; expected[0].flush_dep_par_idx[1] = 2; expected[0].flush_dep_npar = 2; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; /* Verify the status */ @@ -30173,8 +30167,8 @@ check_flush_deps_order(unsigned paged) expected[0].flush_dep_par_type[2] = entry_type; expected[0].flush_dep_par_idx[2] = 3; expected[0].flush_dep_npar = 3; - expected[3].is_protected = TRUE; - expected[3].is_pinned = TRUE; + expected[3].is_protected = true; + expected[3].is_pinned = true; expected[3].flush_dep_nchd = 1; /* Verify the status */ @@ -30228,10 +30222,10 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -30255,21 +30249,21 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-3 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'flushed' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; /* Reset index for tracking flush order */ @@ -30282,22 +30276,22 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 0; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 1; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 2; - expected[2].is_protected = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 3; - expected[3].is_protected = FALSE; + expected[3].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30354,7 +30348,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 2; - expected[3].is_pinned = FALSE; + expected[3].is_pinned = false; expected[3].flush_dep_nchd = 0; /* Verify the status */ @@ -30391,7 +30385,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 1; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -30410,7 +30404,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[0].flush_dep_npar = 0; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -30443,8 +30437,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[0] = entry_type; expected[3].flush_dep_par_idx[0] = 2; expected[3].flush_dep_npar = 1; - expected[2].is_protected = TRUE; - expected[2].is_pinned = TRUE; + expected[2].is_protected = true; + expected[2].is_pinned = true; expected[2].flush_dep_nchd = 1; /* Verify the status */ @@ -30469,8 +30463,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[1] = entry_type; expected[3].flush_dep_par_idx[1] = 1; expected[3].flush_dep_npar = 2; - expected[1].is_protected = TRUE; - expected[1].is_pinned = TRUE; + expected[1].is_protected = true; + expected[1].is_pinned = true; expected[1].flush_dep_nchd = 1; /* Verify the status */ @@ -30515,8 +30509,8 @@ check_flush_deps_order(unsigned paged) expected[3].flush_dep_par_type[2] = entry_type; expected[3].flush_dep_par_idx[2] = 0; expected[3].flush_dep_npar = 3; - expected[0].is_protected = TRUE; - expected[0].is_pinned = TRUE; + expected[0].is_protected = true; + expected[0].is_pinned = true; expected[0].flush_dep_nchd = 1; /* Verify the status */ @@ -30570,10 +30564,10 @@ check_flush_deps_order(unsigned paged) /* Flush the cache and verify that the entries were flushed in correct order */ { - add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); - add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, FALSE, (size_t)0, &flush_order); + add_flush_op(entry_type, 0, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 1, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 2, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); + add_flush_op(entry_type, 3, FLUSH_OP__ORDER, entry_type, 0, false, (size_t)0, &flush_order); unprotect_entry(file_ptr, /* H5F_t * file_ptr */ entry_type, /* int32_t type */ @@ -30597,21 +30591,21 @@ check_flush_deps_order(unsigned paged) CACHE_ERROR("unprotect_entry failed") /* Mark entries 0-3 dirty, so they are flushed */ - dirty_entry(file_ptr, entry_type, 0, FALSE); - dirty_entry(file_ptr, entry_type, 1, TRUE); - dirty_entry(file_ptr, entry_type, 2, TRUE); - dirty_entry(file_ptr, entry_type, 3, FALSE); + dirty_entry(file_ptr, entry_type, 0, false); + dirty_entry(file_ptr, entry_type, 1, true); + dirty_entry(file_ptr, entry_type, 2, true); + dirty_entry(file_ptr, entry_type, 3, false); if (!pass) CACHE_ERROR("dirty_entry failed") /* Reset 'flushed' flag & 'flush_order' value in expected array */ - expected[0].serialized = FALSE; + expected[0].serialized = false; expected[0].flush_order = -1; - expected[1].serialized = FALSE; + expected[1].serialized = false; expected[1].flush_order = -1; - expected[2].serialized = FALSE; + expected[2].serialized = false; expected[2].flush_order = -1; - expected[3].serialized = FALSE; + expected[3].serialized = false; expected[3].flush_order = -1; /* Reset index for tracking flush order */ @@ -30624,22 +30618,22 @@ check_flush_deps_order(unsigned paged) /* Change expected values, and verify the status of the entries * after destroy flush dependency */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; expected[0].flush_order = 3; - expected[0].is_protected = FALSE; - expected[1].is_dirty = FALSE; - expected[1].serialized = TRUE; + expected[0].is_protected = false; + expected[1].is_dirty = false; + expected[1].serialized = true; expected[1].flush_order = 2; - expected[1].is_protected = FALSE; - expected[2].is_dirty = FALSE; - expected[2].serialized = TRUE; + expected[1].is_protected = false; + expected[2].is_dirty = false; + expected[2].serialized = true; expected[2].flush_order = 1; - expected[2].is_protected = FALSE; - expected[3].is_dirty = FALSE; - expected[3].serialized = TRUE; + expected[2].is_protected = false; + expected[3].is_dirty = false; + expected[3].serialized = true; expected[3].flush_order = 0; - expected[3].is_protected = FALSE; + expected[3].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30696,7 +30690,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 2; - expected[0].is_pinned = FALSE; + expected[0].is_pinned = false; expected[0].flush_dep_nchd = 0; /* Verify the status */ @@ -30733,7 +30727,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 1; - expected[1].is_pinned = FALSE; + expected[1].is_pinned = false; expected[1].flush_dep_nchd = 0; /* Verify the status */ @@ -30752,7 +30746,7 @@ check_flush_deps_order(unsigned paged) * after destroying flush dependency */ expected[3].flush_dep_npar = 0; - expected[2].is_pinned = FALSE; + expected[2].is_pinned = false; expected[2].flush_dep_nchd = 0; /* Verify the status */ @@ -30766,7 +30760,7 @@ check_flush_deps_order(unsigned paged) done: if (file_ptr) - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -30802,11 +30796,11 @@ check_notify_cb(unsigned paged) { /* entry entry in at main flush dep flush dep child flush flush flush */ /* type: index: size: cache: addr: dirty: prot: pinned: dsrlzd: srlzd: dest: par type[]: par idx[]: dep npart: dep nchd: dep ndirty chd: order: corked: */ - { NOTIFY_ENTRY_TYPE, 0, NOTIFY_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { NOTIFY_ENTRY_TYPE, 1, NOTIFY_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { NOTIFY_ENTRY_TYPE, 2, NOTIFY_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { NOTIFY_ENTRY_TYPE, 3, NOTIFY_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { NOTIFY_ENTRY_TYPE, 4, NOTIFY_ENTRY_SIZE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE} + { NOTIFY_ENTRY_TYPE, 0, NOTIFY_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { NOTIFY_ENTRY_TYPE, 1, NOTIFY_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { NOTIFY_ENTRY_TYPE, 2, NOTIFY_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { NOTIFY_ENTRY_TYPE, 3, NOTIFY_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { NOTIFY_ENTRY_TYPE, 4, NOTIFY_ENTRY_SIZE, false, true, false, false, false, false, false, false, {0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 0, 0, 0, -1, false} }; /* clang-format on */ @@ -30815,7 +30809,7 @@ check_notify_cb(unsigned paged) else TESTING("'notify' callback"); - pass = TRUE; + pass = true; /* Allocate a cache, insert & remove entries, triggering 'notify' callback. * Verify that all performs as expected. @@ -30840,8 +30834,8 @@ check_notify_cb(unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[u].in_cache = TRUE; - expected[u].is_dirty = TRUE; + expected[u].in_cache = true; + expected[u].is_dirty = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30868,10 +30862,10 @@ check_notify_cb(unsigned paged) /* Change expected values, and verify the status of the entries * after each expunge */ - expected[u].in_cache = FALSE; - expected[u].is_dirty = TRUE; - expected[u].serialized = FALSE; - expected[u].destroyed = TRUE; + expected[u].in_cache = false; + expected[u].is_dirty = true; + expected[u].serialized = false; + expected[u].destroyed = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30898,10 +30892,10 @@ check_notify_cb(unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[u].in_cache = TRUE; - expected[u].is_dirty = FALSE; - expected[u].is_protected = TRUE; - expected[u].deserialized = TRUE; + expected[u].in_cache = true; + expected[u].is_dirty = false; + expected[u].is_protected = true; + expected[u].deserialized = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30928,9 +30922,9 @@ check_notify_cb(unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[u].in_cache = TRUE; - expected[u].is_dirty = TRUE; - expected[u].is_protected = FALSE; + expected[u].in_cache = true; + expected[u].is_dirty = true; + expected[u].is_protected = false; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30957,10 +30951,10 @@ check_notify_cb(unsigned paged) /* Change expected values, and verify the status of the entries * after each expunge */ - expected[u].in_cache = FALSE; - expected[u].is_dirty = TRUE; - expected[u].serialized = FALSE; - expected[u].destroyed = TRUE; + expected[u].in_cache = false; + expected[u].is_dirty = true; + expected[u].serialized = false; + expected[u].destroyed = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -30979,7 +30973,7 @@ check_notify_cb(unsigned paged) } /* end for */ done: - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) PASSED(); @@ -31004,7 +30998,7 @@ done: *------------------------------------------------------------------------- */ static unsigned -check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) +check_metadata_cork(bool fill_via_insertion, unsigned paged) { struct expected_entry_status *expected = NULL; const char *fcn_name = "check_metadata_cork"; @@ -31012,7 +31006,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) size_t entry_size = HUGE_ENTRY_SIZE; /* 16 KB */ H5F_t *file_ptr = NULL; H5C_t *cache_ptr = NULL; - hbool_t show_progress = FALSE; + bool show_progress = false; int32_t checkpoint = 0; int32_t entry_idx = 0; int32_t i; @@ -31020,12 +31014,12 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) /* Expected deserialized status of entries depends on how they get into * the cache. Insertions = not deserialized, protect/unprotect = deserialized. */ - hbool_t deserialized = (hbool_t) !(fill_via_insertion); + bool deserialized = (bool)!(fill_via_insertion); expected = malloc(150 * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -31037,14 +31031,14 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) expected[i].entry_type = HUGE_ENTRY_TYPE; expected[i].entry_index = (int)i; expected[i].size = HUGE_ENTRY_SIZE; - expected[i].in_cache = FALSE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = FALSE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = FALSE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = false; + expected[i].at_main_addr = true; + expected[i].is_dirty = false; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = false; + expected[i].serialized = false; + expected[i].destroyed = false; memset(expected[i].flush_dep_par_type, 0, sizeof(expected[i].flush_dep_par_type)); memset(expected[i].flush_dep_par_idx, 0, sizeof(expected[i].flush_dep_par_idx)); @@ -31053,10 +31047,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } - pass = TRUE; + pass = true; } reset_entries(); @@ -31080,7 +31074,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "bad return from cache initialization.\n"; } else @@ -31131,10 +31125,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) /* Change expected values, and verify the status of the entries * after each insertion */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; - expected[entry_idx].is_corked = TRUE; + expected[entry_idx].is_corked = true; verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ entry_idx, /* int tag */ @@ -31187,10 +31181,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) */ /* entry w/ index 26 is now in the cache and dirty. */ - expected[26].in_cache = TRUE; - expected[26].is_dirty = TRUE; + expected[26].in_cache = true; + expected[26].is_dirty = true; expected[26].deserialized = (unsigned char)deserialized; - expected[26].is_corked = TRUE; + expected[26].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31228,10 +31222,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) * all entries are dirty corked entries. * */ - expected[27].in_cache = TRUE; - expected[27].is_dirty = TRUE; + expected[27].in_cache = true; + expected[27].is_dirty = true; expected[27].deserialized = (unsigned char)deserialized; - expected[27].is_corked = TRUE; + expected[27].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31269,10 +31263,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) /* * Expected status: all entries are dirty corked entries. */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; - expected[entry_idx].is_corked = TRUE; + expected[entry_idx].is_corked = true; /* Verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31282,9 +31276,9 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* Verify that the cache is now full */ - if (cache_ptr->cache_full != TRUE) { + if (cache_ptr->cache_full != true) { - pass = FALSE; + pass = false; failure_mssg = "cache not completely filled.\n"; } } @@ -31328,10 +31322,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* This past inserted entry is now in the cache: dirty and corked */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; - expected[entry_idx].is_corked = TRUE; + expected[entry_idx].is_corked = true; /* Verify this expected status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31365,9 +31359,9 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) */ flush_cache(file_ptr, /* H5F_t * file_ptr */ - FALSE, /* hbool_t destory_entries */ - FALSE, /* hbool_t dump_stats */ - FALSE); /* hbool_t dump_detailed_stats */ + false, /* bool destory_entries */ + false, /* bool dump_stats */ + false); /* bool dump_detailed_stats */ /* Verify that the cache is clean */ verify_clean(); @@ -31375,9 +31369,9 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) /* Verify the status of the entries. */ /* All entries are flushed, clean but still corked */ for (i = 0; i < 100; i++) { - expected[i].serialized = TRUE; - expected[i].is_dirty = FALSE; - expected[i].is_corked = TRUE; + expected[i].serialized = true; + expected[i].is_dirty = false; + expected[i].is_corked = true; } verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ 0, /* int tag */ @@ -31392,9 +31386,9 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) /* Will evict 50 clean "corked" entries all at once when inserting the 100th entry */ for (i = 0; i < 51; i++) { - expected[i].in_cache = FALSE; - expected[i].destroyed = TRUE; - expected[i].is_corked = TRUE; + expected[i].in_cache = false; + expected[i].destroyed = true; + expected[i].is_corked = true; } /* Insert the 100th entry */ @@ -31416,10 +31410,10 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* The 100th inserted entry is now in the cache and dirty */ - expected[100].in_cache = TRUE; - expected[100].is_dirty = TRUE; + expected[100].in_cache = true; + expected[100].is_dirty = true; expected[100].deserialized = (unsigned char)deserialized; - expected[100].is_corked = TRUE; + expected[100].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31455,14 +31449,14 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* The inserted entry is now in the cache and dirty */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; - expected[entry_idx].is_corked = TRUE; + expected[entry_idx].is_corked = true; - expected[entry_idx - 50].in_cache = FALSE; - expected[entry_idx - 50].destroyed = TRUE; - expected[entry_idx - 50].is_corked = TRUE; + expected[entry_idx - 50].in_cache = false; + expected[entry_idx - 50].destroyed = true; + expected[entry_idx - 50].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31496,14 +31490,14 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* Verify the status of the entries. */ - expected[126].in_cache = TRUE; - expected[126].is_dirty = TRUE; + expected[126].in_cache = true; + expected[126].is_dirty = true; expected[126].deserialized = (unsigned char)deserialized; - expected[126].is_corked = TRUE; + expected[126].is_corked = true; - expected[126 - 50].in_cache = FALSE; - expected[126 - 50].destroyed = TRUE; - expected[126 - 50].is_corked = TRUE; + expected[126 - 50].in_cache = false; + expected[126 - 50].destroyed = true; + expected[126 - 50].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31538,15 +31532,15 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) } /* This past inserted entry is now in the cache, dirty and corked */ - expected[entry_idx].in_cache = TRUE; - expected[entry_idx].is_dirty = TRUE; + expected[entry_idx].in_cache = true; + expected[entry_idx].is_dirty = true; expected[entry_idx].deserialized = (unsigned char)deserialized; - expected[entry_idx].is_corked = TRUE; + expected[entry_idx].is_corked = true; /* Entry that is 50 entries away will be evicted since it is clean even though corked */ - expected[entry_idx - 50].in_cache = FALSE; - expected[entry_idx - 50].destroyed = TRUE; - expected[entry_idx - 50].is_corked = TRUE; + expected[entry_idx - 50].in_cache = false; + expected[entry_idx - 50].destroyed = true; + expected[entry_idx - 50].is_corked = true; /* verify the status */ verify_entry_status(cache_ptr, /* H5C_t * cache_ptr */ @@ -31560,7 +31554,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) fprintf(stdout, "%s: check point %d -- pass %d\n", fcn_name, checkpoint++, pass); /* We're done with testing. We can take down the cache. */ - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); reset_entries(); if (show_progress) /* 13 */ @@ -31596,7 +31590,7 @@ check_metadata_cork(hbool_t fill_via_insertion, unsigned paged) * This function contains tests for correct handling on this * situation. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -31612,7 +31606,7 @@ check_entry_deletions_during_scans(unsigned paged) else TESTING("entry deletion during list scan detection and adaption"); - pass = TRUE; + pass = true; /* allocate a cache, and flush it under various circumstances. * To the extent possible, verify that the desired actions took @@ -31652,7 +31646,7 @@ check_entry_deletions_during_scans(unsigned paged) cedds__H5C_flush_invalidate_cache__bucket_scan(file_ptr); } - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); if (pass) { PASSED(); @@ -31686,7 +31680,7 @@ check_entry_deletions_during_scans(unsigned paged) * * H5C_flush_cache() should handle this deletion gracefully. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -31703,7 +31697,7 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) expected = malloc(36 * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -31717,14 +31711,14 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) expected[i].entry_type = HUGE_ENTRY_TYPE; expected[i].entry_index = (int)i; expected[i].size = HUGE_ENTRY_SIZE; - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = TRUE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; + expected[i].is_dirty = true; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; for (size_t j = 0; j < MAX_FLUSH_DEP_PARS; j++) { expected[i].flush_dep_par_type[j] = -1; @@ -31735,28 +31729,28 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } - pass = TRUE; + pass = true; } if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to cedds expunge dirty entry in flush test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty on entry to cedds expunge dirty entry in flush test."; } else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of cedds expunge dirty entry in flush test."; } else { @@ -31800,7 +31794,7 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) if ((cache_ptr->index_len != 4) || (cache_ptr->index_size != (4 * HUGE_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in cedds expunge dirty entry in flush test (1)"; } @@ -31813,7 +31807,7 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) * (HET, 0) expunges (HET, 1) * */ - add_flush_op(HUGE_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, HUGE_ENTRY_TYPE, 1, FALSE, (size_t)0, NULL); + add_flush_op(HUGE_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, HUGE_ENTRY_TYPE, 1, false, (size_t)0, NULL); } if (pass) { @@ -31850,7 +31844,7 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after cedds expunge dirty entry in flush test"; } } @@ -31875,14 +31869,14 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[HUGE_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[HUGE_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected huge size entry stats in cedds__expunge_dirty_entry_in_flush_test()."; } /* end if */ if (pass) if ((cache_ptr->slist_scan_restarts != 1) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "unexpected scan restart stats in cedds__expunge_dirty_entry_in_flush_test()."; } /* end if */ #endif /* H5C_COLLECT_CACHE_STATS */ @@ -31915,7 +31909,7 @@ cedds__expunge_dirty_entry_in_flush_test(H5F_t *file_ptr) * restart its scan of the LRU from the tail, instead of * examining the now deleted next item up on the LRU. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -31934,7 +31928,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) expected = malloc(36 * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -31956,14 +31950,14 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) expected[i].size = MONSTER_ENTRY_SIZE; } - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; - expected[i].is_dirty = TRUE; - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; + expected[i].is_dirty = true; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; for (size_t j = 0; j < MAX_FLUSH_DEP_PARS; j++) { expected[i].flush_dep_par_type[j] = -1; @@ -31974,28 +31968,28 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } - pass = TRUE; + pass = true; } if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to cedds for H5C__make_space_in_cache() test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at start of flush ops eviction test."; } else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of cedds H5C__make_space_in_cache() test."; } else { @@ -32043,7 +32037,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) if ((cache_ptr->index_len != 4) || (cache_ptr->index_size != (4 * HUGE_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in H5C__make_space_in_cache() test (1)"; } @@ -32056,7 +32050,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) * (HET, 0) expunges (HET, 1) * */ - add_flush_op(HUGE_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, HUGE_ENTRY_TYPE, 1, FALSE, (size_t)0, NULL); + add_flush_op(HUGE_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, HUGE_ENTRY_TYPE, 1, false, (size_t)0, NULL); } if (pass) { @@ -32092,7 +32086,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) if ((cache_ptr->index_len != 35) || (cache_ptr->index_size != 2 * 1024 * 1024) || (cache_ptr->index_size != ((4 * HUGE_ENTRY_SIZE) + (31 * MONSTER_ENTRY_SIZE)))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in H5C__make_space_in_cache() test (2)"; } else { @@ -32136,7 +32130,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) if ((cache_ptr->index_len != 32) || (cache_ptr->index_size != 2 * 1024 * 1024) || (cache_ptr->index_size != (32 * MONSTER_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in H5C__make_space_in_cache() test (3)"; } else { @@ -32145,19 +32139,19 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) * then call verify_entry_status(). */ for (i = 0; i < num_huge_entries; i++) { - expected[i].in_cache = FALSE; - expected[i].is_dirty = FALSE; - expected[i].serialized = TRUE; - expected[i].destroyed = TRUE; + expected[i].in_cache = false; + expected[i].is_dirty = false; + expected[i].serialized = true; + expected[i].destroyed = true; } /* (HET, 1) was expunged, so touch its entry up accordingly */ - expected[1].is_dirty = TRUE; - expected[1].serialized = FALSE; + expected[1].is_dirty = true; + expected[1].serialized = false; for (i = num_huge_entries; i < num_huge_entries + num_monster_entries - 1; i++) { - expected[i].is_dirty = FALSE; - expected[i].serialized = TRUE; + expected[i].is_dirty = false; + expected[i].serialized = true; } /* verify the expected status of all entries: */ @@ -32174,7 +32168,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after cleanup of flush op eviction test"; } } @@ -32201,7 +32195,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[HUGE_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[HUGE_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected large entry stats in cedds__H5C_make_space_in_cache()."; } } @@ -32224,7 +32218,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry stats in cedds__H5C_make_space_in_cache()."; } /* end if */ @@ -32232,7 +32226,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) if ((cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 1) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "unexpected scan restart stats in cedds__H5C_make_space_in_cache()."; } /* end if */ @@ -32266,7 +32260,7 @@ cedds__H5C_make_space_in_cache(H5F_t *file_ptr) * restart its scan of the LRU from the tail, instead of * examining the now deleted next item up on the LRU. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -32285,7 +32279,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) /* int32_t version = */ H5C__CURR_AUTO_SIZE_CTL_VER, /* H5C_auto_resize_report_fcn rpt_fcn = */ test_rpt_fcn, - /* hbool_t set_initial_size = */ TRUE, + /* bool set_initial_size = */ true, /* size_t initial_size = */ (2 * 1024 * 1024), /* double min_clean_fraction = */ 0.5, @@ -32301,7 +32295,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) /* double increment = */ 2.0, - /* hbool_t apply_max_increment = */ TRUE, + /* bool apply_max_increment = */ true, /* size_t max_increment = */ (4 * 1024 * 1024), /* enum H5C_cache_flash_incr_mode */ @@ -32315,18 +32309,18 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) /* double decrement = */ 0.5, - /* hbool_t apply_max_decrement = */ FALSE, + /* bool apply_max_decrement = */ false, /* size_t max_decrement = */ (1 * 1024 * 1024), /* int32_t epochs_before_eviction = */ 1, - /* hbool_t apply_empty_reserve = */ TRUE, + /* bool apply_empty_reserve = */ true, /* double empty_reserve = */ 0.05}; expected = malloc(36 * sizeof(struct expected_entry_status)); if (expected == NULL) { - pass = FALSE; + pass = false; failure_mssg = "couldn't allocate expected entry status array\n"; } @@ -32340,17 +32334,17 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) expected[i].entry_type = MONSTER_ENTRY_TYPE; expected[i].entry_index = (int)i; expected[i].size = MONSTER_ENTRY_SIZE; - expected[i].in_cache = TRUE; - expected[i].at_main_addr = TRUE; + expected[i].in_cache = true; + expected[i].at_main_addr = true; /* NOTE: special case for first entry */ expected[i].is_dirty = (i == 0); - expected[i].is_protected = FALSE; - expected[i].is_pinned = FALSE; - expected[i].deserialized = TRUE; - expected[i].serialized = FALSE; - expected[i].destroyed = FALSE; + expected[i].is_protected = false; + expected[i].is_pinned = false; + expected[i].deserialized = true; + expected[i].serialized = false; + expected[i].destroyed = false; for (size_t j = 0; j < MAX_FLUSH_DEP_PARS; j++) { expected[i].flush_dep_par_type[j] = -1; @@ -32361,30 +32355,30 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) expected[i].flush_dep_nchd = 0; expected[i].flush_dep_ndirty_chd = 0; expected[i].flush_order = -1; - expected[i].is_corked = FALSE; + expected[i].is_corked = false; } - pass = TRUE; + pass = true; } if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to cedds for " "H5C__autoadjust__ageout__evict_aged_out_entries() test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at start cedds for H5C__autoadjust__ageout__evict_aged_out_entries() test."; } else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of cedds " "H5C__autoadjust__ageout__evict_aged_out_entries() test."; } @@ -32407,7 +32401,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_get_cache_auto_resize_config failed."; } } @@ -32419,7 +32413,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 1.\n"; } } @@ -32467,7 +32461,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) * (MET, 0) expunges (MET, 1) * */ - add_flush_op(MONSTER_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, MONSTER_ENTRY_TYPE, 1, FALSE, (size_t)0, NULL); + add_flush_op(MONSTER_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, MONSTER_ENTRY_TYPE, 1, false, (size_t)0, NULL); } if (pass) { @@ -32491,7 +32485,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if ((cache_ptr->index_len != 32) || (cache_ptr->index_size != 2 * 1024 * 1024) || (cache_ptr->index_size != (32 * MONSTER_ENTRY_SIZE))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in H5C__autoadjust__ageout__evict_aged_out_entries() test (1)"; } @@ -32535,7 +32529,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if ((cache_ptr->index_len != 2) || (cache_ptr->index_size != 2 * MONSTER_ENTRY_SIZE)) { - pass = FALSE; + pass = false; failure_mssg = "unexpected size/len in H5C__autoadjust__ageout__evict_aged_out_entries() test (2)"; } @@ -32545,13 +32539,13 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) * this point, and then verify. */ - expected[0].is_dirty = FALSE; - expected[0].serialized = TRUE; + expected[0].is_dirty = false; + expected[0].serialized = true; for (i = 1; i < 31; i++) { - expected[i].in_cache = FALSE; - expected[i].is_dirty = FALSE; - expected[i].destroyed = TRUE; + expected[i].in_cache = false; + expected[i].is_dirty = false; + expected[i].destroyed = true; } verify_entry_status(cache_ptr, 0, 32, expected); @@ -32561,14 +32555,14 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) /* restore the initial resize configuration */ if (pass) { - saved_auto_size_ctl.set_initial_size = TRUE; + saved_auto_size_ctl.set_initial_size = true; saved_auto_size_ctl.initial_size = 2 * 1024 * 1024; result = H5C_set_cache_auto_resize_config(cache_ptr, &saved_auto_size_ctl); if (result != SUCCEED) { - pass = FALSE; + pass = false; failure_mssg = "H5C_set_cache_auto_resize_config failed 2.\n"; } } @@ -32582,7 +32576,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after cleanup of flush op eviction test"; } } @@ -32610,7 +32604,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry stats in cedds__H5C__autoadjust__ageout__evict_aged_out_entries()."; } /* end if */ @@ -32619,7 +32613,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) if ((cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 1) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "unexpected scan restart stats in cedds__H5C__autoadjust__ageout__evict_aged_out_entries()."; } /* end if */ @@ -32715,7 +32709,7 @@ cedds__H5C__autoadjust__ageout__evict_aged_out_entries(H5F_t *file_ptr) * it will attempt to continue its scan of the bucket with * an entry that has been deleted from the cache. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -32742,11 +32736,11 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) */ /* entry entry in at main flush dep flush dep child flush flush flush */ /* type: index: size: cache: addr: dirty: prot: pinned: dsrlzd: srlzd: dest: par type[]: par idx[]: dep npart: dep nchd: dep ndirty chd: order: corked: */ - { MONSTER_ENTRY_TYPE, 0, MONSTER_ENTRY_SIZE, TRUE, TRUE, TRUE, FALSE, TRUE, TRUE, FALSE, FALSE, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 1, 1, -1, FALSE}, - { MONSTER_ENTRY_TYPE, 8, MONSTER_ENTRY_SIZE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { MONSTER_ENTRY_TYPE, 16, MONSTER_ENTRY_SIZE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { MONSTER_ENTRY_TYPE, 24, MONSTER_ENTRY_SIZE, TRUE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, FALSE}, - { MONSTER_ENTRY_TYPE, 31, MONSTER_ENTRY_SIZE, TRUE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, FALSE, {MONSTER_ENTRY_TYPE,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 1, 0, 0, -1, FALSE}, + { MONSTER_ENTRY_TYPE, 0, MONSTER_ENTRY_SIZE, true, true, true, false, true, true, false, false, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 1, 1, -1, false}, + { MONSTER_ENTRY_TYPE, 8, MONSTER_ENTRY_SIZE, true, true, false, false, false, true, false, false, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { MONSTER_ENTRY_TYPE, 16, MONSTER_ENTRY_SIZE, true, true, false, false, false, true, false, false, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { MONSTER_ENTRY_TYPE, 24, MONSTER_ENTRY_SIZE, true, true, false, false, false, true, false, false, {-1,0,0,0,0,0,0,0}, {-1,0,0,0,0,0,0,0}, 0, 0, 0, -1, false}, + { MONSTER_ENTRY_TYPE, 31, MONSTER_ENTRY_SIZE, true, true, true, false, false, true, false, false, {MONSTER_ENTRY_TYPE,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0}, 1, 0, 0, -1, false}, }; /* clang-format on */ @@ -32754,20 +32748,20 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to cedds for cedds__H5C_flush_invalidate_cache__bucket_scan() test."; } else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty at start cedds for cedds__H5C_flush_invalidate_cache__bucket_scan() test."; } else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of cedds " "cedds__H5C_flush_invalidate_cache__bucket_scan() test."; } @@ -32820,7 +32814,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) if (expected_hash_bucket != H5C__HASH_FCN(entry_addr)) { - pass = FALSE; + pass = false; failure_mssg = "Test entries don't map to same bucket -- hash table size or hash fcn change?"; } } @@ -32833,7 +32827,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) * (MET, 0) expunges (MET, 8) * */ - add_flush_op(MONSTER_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, MONSTER_ENTRY_TYPE, 8, FALSE, (size_t)0, NULL); + add_flush_op(MONSTER_ENTRY_TYPE, 0, FLUSH_OP__EXPUNGE, MONSTER_ENTRY_TYPE, 8, false, (size_t)0, NULL); } if (pass) { @@ -32858,7 +32852,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) if (expected_hash_bucket == H5C__HASH_FCN(entry_addr)) { - pass = FALSE; + pass = false; failure_mssg = "Dirty entry maps to same hash bucket as clean entries?!?!"; } } @@ -32882,7 +32876,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) * (MET, 31) destroys flush dependency with (MET, 8) * */ - add_flush_op(MONSTER_ENTRY_TYPE, 31, FLUSH_OP__DEST_FLUSH_DEP, MONSTER_ENTRY_TYPE, 0, FALSE, + add_flush_op(MONSTER_ENTRY_TYPE, 31, FLUSH_OP__DEST_FLUSH_DEP, MONSTER_ENTRY_TYPE, 0, false, (size_t)0, NULL); } @@ -32920,12 +32914,12 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) if (scan_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "premature end of hash bucket list?!?!"; } else if ((scan_ptr == NULL) || (scan_ptr != &(entry_ptr->header))) { - pass = FALSE; + pass = false; failure_mssg = "bad test hash bucket setup?!?!"; } @@ -32946,7 +32940,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after cleanup of flush op eviction test"; } } @@ -32974,7 +32968,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry stats in cedds__H5C_flush_invalidate_cache__bucket_scan()."; } /* end if */ @@ -32986,7 +32980,7 @@ cedds__H5C_flush_invalidate_cache__bucket_scan(H5F_t *file_ptr) */ if ((cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 1)) { - pass = FALSE; + pass = false; failure_mssg = "unexpected scan restart stats in cedds__H5C_flush_invalidate_cache__bucket_scan()."; } @@ -33035,7 +33029,7 @@ check_stats(unsigned paged) #if H5C_COLLECT_CACHE_STATS - pass = TRUE; + pass = true; reset_entries(); @@ -33048,7 +33042,7 @@ check_stats(unsigned paged) if (pass) { - takedown_cache(file_ptr, FALSE, FALSE); + takedown_cache(file_ptr, false, false); } if (pass) { @@ -33088,7 +33082,7 @@ check_stats(unsigned paged) * check that will serve as a place holder until more complete * tests are implemented. * - * Do nothing if pass is FALSE on entry. + * Do nothing if pass is false on entry. * * Return: void * @@ -33104,18 +33098,18 @@ check_stats__smoke_check_1(H5F_t *file_ptr) if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "cache_ptr NULL on entry to check_stats__smoke_check_1()."; } /* end if */ else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) { - pass = FALSE; + pass = false; failure_mssg = "cache not empty on entry to check_stats__smoke_check_1()."; } /* end else-if */ else if ((cache_ptr->max_cache_size != (2 * 1024 * 1024)) || (cache_ptr->min_clean_size != (1 * 1024 * 1024))) { - pass = FALSE; + pass = false; failure_mssg = "unexpected cache config at start of check_stats__smoke_check_1()."; } /* end else-if */ @@ -33155,7 +33149,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster size entry stats in check_stats__smoke_check_1(1)."; } /* end if */ @@ -33176,7 +33170,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entries_scanned_to_make_space != 0) || (cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache stats in check_stats__smoke_check_1(1)."; } /* end if */ } @@ -33191,7 +33185,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->max_size[MONSTER_ENTRY_TYPE] != 64 * 1024) || (cache_ptr->max_pins[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry level stats in check_stats__smoke_check_1(1)."; } /* end if */ #endif /* H5C_COLLECT_CACHE_ENTRY_STATS */ @@ -33228,7 +33222,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster size entry stats in check_stats__smoke_check_1(2)."; } /* end if */ @@ -33250,7 +33244,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entries_scanned_to_make_space != 0) || (cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache stats in check_stats__smoke_check_1(2)."; } /* end if */ } @@ -33265,7 +33259,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->max_size[MONSTER_ENTRY_TYPE] != 64 * 1024) || (cache_ptr->max_pins[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry level stats in check_stats__smoke_check_1(2)."; } /* end if */ #endif /* H5C_COLLECT_CACHE_ENTRY_STATS */ @@ -33302,7 +33296,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster size entry stats in check_stats__smoke_check_1(3)."; } /* end if */ @@ -33325,7 +33319,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entries_scanned_to_make_space != 33) || (cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache stats in check_stats__smoke_check_1(3)."; } /* end if */ } @@ -33340,7 +33334,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->max_size[MONSTER_ENTRY_TYPE] != 64 * 1024) || (cache_ptr->max_pins[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry level stats in check_stats__smoke_check_1(3)."; } /* end if */ @@ -33363,7 +33357,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) if ((pass) && ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0))) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache len/size after check_stats__smoke_check_1()"; } /* end else-if */ @@ -33391,7 +33385,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entry_flush_size_changes[MONSTER_ENTRY_TYPE] != 0) || (cache_ptr->cache_flush_size_changes[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster size entry stats in check_stats__smoke_check_1(4)."; } /* end if */ @@ -33414,7 +33408,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->entries_scanned_to_make_space != 33) || (cache_ptr->slist_scan_restarts != 0) || (cache_ptr->LRU_scan_restarts != 0) || (cache_ptr->index_scan_restarts != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected cache stats in check_stats__smoke_check_1(4)."; } /* end if */ } @@ -33429,7 +33423,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) (cache_ptr->max_size[MONSTER_ENTRY_TYPE] != 64 * 1024) || (cache_ptr->max_pins[MONSTER_ENTRY_TYPE] != 0)) { - pass = FALSE; + pass = false; failure_mssg = "Unexpected monster entry level stats in check_stats__smoke_check_1(4)."; } /* end if */ @@ -33466,7 +33460,7 @@ check_stats__smoke_check_1(H5F_t *file_ptr) *------------------------------------------------------------------------- */ static herr_t -check_write_permitted(const H5F_t H5_ATTR_UNUSED *f, hbool_t *write_permitted_ptr) +check_write_permitted(const H5F_t H5_ATTR_UNUSED *f, bool *write_permitted_ptr) { assert(write_permitted_ptr); @@ -33509,10 +33503,10 @@ H5F_t * setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) { char filename[512]; - hbool_t show_progress = FALSE; - hbool_t verbose = TRUE; + bool show_progress = false; + bool verbose = true; int mile_stone = 1; - hid_t fid = -1; + hid_t fid = H5I_INVALID_HID; H5F_t *file_ptr = NULL; H5C_t *cache_ptr = NULL; H5F_t *ret_val = NULL; @@ -33527,7 +33521,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass) { if ((fcpl_id = H5Pcreate(H5P_FILE_CREATE)) == FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5Pcreate(H5P_FILE_CREATE) failed.\n"; } } @@ -33535,7 +33529,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass && paged) { /* Set up paged aggregation strategy */ if (H5Pset_file_space_strategy(fcpl_id, H5F_FSPACE_STRATEGY_PAGE, 1, (hsize_t)1) == FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5Pset_file_space_strategy() failed.\n"; H5Pclose(fcpl_id); fcpl_id = H5P_DEFAULT; @@ -33545,7 +33539,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass && paged) { /* Set up file space page size to BASE_ADDR */ if (H5Pset_file_space_page_size(fcpl_id, (hsize_t)BASE_ADDR) == FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5Pset_file_space_page_size() failed.\n"; H5Pclose(fcpl_id); fcpl_id = H5P_DEFAULT; @@ -33558,7 +33552,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) /* setup the file name */ if (pass) { if (NULL == h5_fixname(FILENAME[0], H5P_DEFAULT, filename, sizeof(filename))) { - pass = FALSE; + pass = false; failure_mssg = "h5_fixname() failed.\n"; } } @@ -33568,17 +33562,17 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass && try_core_file_driver) { if ((fapl_id = H5Pcreate(H5P_FILE_ACCESS)) == FAIL) { - pass = FALSE; + pass = false; failure_mssg = "H5Pcreate(H5P_FILE_ACCESS) failed.\n"; } - else if (H5Pset_fapl_core(fapl_id, MAX_ADDR, FALSE) < 0) { + else if (H5Pset_fapl_core(fapl_id, MAX_ADDR, false) < 0) { H5Pclose(fapl_id); fapl_id = H5P_DEFAULT; - pass = FALSE; + pass = false; failure_mssg = "H5P_set_fapl_core() failed.\n"; } else if ((fid = H5Fcreate(filename, H5F_ACC_TRUNC, fcpl_id, fapl_id)) < 0) { - core_file_driver_failed = TRUE; + core_file_driver_failed = true; if (verbose) fprintf(stdout, "%s: H5Fcreate() with CFD failed.\n", __func__); @@ -33600,7 +33594,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) saved_fid = fid; if (fid < 0) { - pass = FALSE; + pass = false; failure_mssg = "H5Fcreate() failed."; if (verbose) @@ -33618,7 +33612,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) assert(fid >= 0); saved_fid = fid; if (H5Fflush(fid, H5F_SCOPE_GLOBAL) < 0) { - pass = FALSE; + pass = false; failure_mssg = "H5Fflush() failed."; if (verbose) @@ -33627,7 +33621,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) else { file_ptr = (H5F_t *)H5VL_object_verify(fid, H5I_FILE); if (file_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "Can't get file_ptr."; if (verbose) @@ -33674,7 +33668,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) file_ptr->shared->cache = NULL; cache_ptr = H5C_create(max_cache_size, min_clean_size, (NUMBER_OF_ENTRY_TYPES - 1), types, - check_write_permitted, TRUE, NULL, NULL); + check_write_permitted, true, NULL, NULL); file_ptr->shared->cache = cache_ptr; } @@ -33684,7 +33678,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass) { if (cache_ptr == NULL) { - pass = FALSE; + pass = false; failure_mssg = "H5C_create() failed."; if (verbose) @@ -33699,7 +33693,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) actual_base_addr = H5MF_alloc(file_ptr, H5FD_MEM_DEFAULT, (hsize_t)(ADDR_SPACE_SIZE + BASE_ADDR)); if (actual_base_addr == HADDR_UNDEF) { - pass = FALSE; + pass = false; failure_mssg = "H5MF_alloc() failed."; if (verbose) @@ -33710,7 +33704,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) * actual_base_addr is <= BASE_ADDR. This should only happen * if the size of the superblock is increase. */ - pass = FALSE; + pass = false; failure_mssg = "actual_base_addr > BASE_ADDR"; if (verbose) @@ -33725,7 +33719,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) if (pass) { /* Need to set this else all cache tests will fail */ - cache_ptr->ignore_tags = TRUE; + cache_ptr->ignore_tags = true; H5C_stats__reset(cache_ptr); ret_val = file_ptr; @@ -33744,7 +33738,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) * dump stats first. Then close and delete the associate * file. * - * If pass is FALSE, do nothing. + * If pass is false, do nothing. * * Return: void * @@ -33752,7 +33746,7 @@ setup_cache(size_t max_cache_size, size_t min_clean_size, unsigned paged) */ void -takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats) +takedown_cache(H5F_t *file_ptr, bool dump_stats, bool dump_detailed_stats) { char filename[512]; @@ -33766,11 +33760,11 @@ takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats) if (H5C_prep_for_file_close(file_ptr) < 0) { - pass = FALSE; + pass = false; failure_mssg = "unexpected failure of prep for file close.\n"; } - flush_cache(file_ptr, TRUE, FALSE, FALSE); + flush_cache(file_ptr, true, false, false); H5C_dest(file_ptr); @@ -33808,7 +33802,7 @@ takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats) if (H5Fclose(saved_fid) < 0) { - pass = FALSE; + pass = false; failure_mssg = "couldn't close test file."; } else { @@ -33817,19 +33811,19 @@ takedown_cache(H5F_t *file_ptr, hbool_t dump_stats, hbool_t dump_detailed_stats) } /* Pop API context */ - H5CX_pop(FALSE); + H5CX_pop(false); if ((!try_core_file_driver) || (core_file_driver_failed)) { if (h5_fixname(FILENAME[0], H5P_DEFAULT, filename, sizeof(filename)) == NULL) { - pass = FALSE; + pass = false; failure_mssg = "h5_fixname() failed.\n"; } if (HDremove(filename) < 0) { - pass = FALSE; + pass = false; failure_mssg = "couldn't delete test file."; } } @@ -33862,7 +33856,7 @@ main(void) printf("=========================================\n"); if (!h5_using_default_driver(NULL)) { - HDputs(" -- SKIPPED for incompatible VFD --"); + puts(" -- SKIPPED for incompatible VFD --"); exit(EXIT_SUCCESS); } @@ -33874,7 +33868,7 @@ main(void) /* Test with paged aggregation enabled or not */ /* Each test will call setup_cache() which set up the file space strategy according to "paged" */ - for (paged = FALSE; paged <= TRUE; paged++) { + for (paged = false; paged <= true; paged++) { if (paged) { @@ -33923,20 +33917,20 @@ main(void) nerrs += check_protect_ro_rw_err(paged); nerrs += check_protect_retries(paged); nerrs += check_check_evictions_enabled_err(paged); - nerrs += check_auto_cache_resize(FALSE, paged); - nerrs += check_auto_cache_resize(TRUE, paged); + nerrs += check_auto_cache_resize(false, paged); + nerrs += check_auto_cache_resize(true, paged); nerrs += check_auto_cache_resize_disable(paged); nerrs += check_auto_cache_resize_epoch_markers(paged); nerrs += check_auto_cache_resize_input_errs(paged); nerrs += check_auto_cache_resize_aux_fcns(paged); - nerrs += check_metadata_blizzard_absence(TRUE, paged); - nerrs += check_metadata_blizzard_absence(FALSE, paged); + nerrs += check_metadata_blizzard_absence(true, paged); + nerrs += check_metadata_blizzard_absence(false, paged); nerrs += check_flush_deps(paged); nerrs += check_flush_deps_err(paged); nerrs += check_flush_deps_order(paged); nerrs += check_notify_cb(paged); - nerrs += check_metadata_cork(TRUE, paged); - nerrs += check_metadata_cork(FALSE, paged); + nerrs += check_metadata_cork(true, paged); + nerrs += check_metadata_cork(false, paged); nerrs += check_entry_deletions_during_scans(paged); nerrs += check_stats(paged); } /* end for */ |