summaryrefslogtreecommitdiffstats
path: root/test/cache.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-09-05 20:11:52 (GMT)
committerGitHub <noreply@github.com>2023-09-05 20:11:52 (GMT)
commit920869796031ed4ee9c1fbea8aaccda3592a88b3 (patch)
tree30f007ff79b87a79c882d9149cdbfcb797be92e1 /test/cache.c
parentae1379094b71c51342772397af5caca088862a61 (diff)
downloadhdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.zip
hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.gz
hdf5-920869796031ed4ee9c1fbea8aaccda3592a88b3.tar.bz2
Convert hbool_t --> bool in test (#3494)
Diffstat (limited to 'test/cache.c')
-rw-r--r--test/cache.c9765
1 files changed, 4883 insertions, 4882 deletions
diff --git a/test/cache.c b/test/cache.c
index 673b253..a9d91a6 100644
--- a/test/cache.c
+++ b/test/cache.c
@@ -44,9 +44,9 @@ hid_t saved_fcpl_id = H5P_DEFAULT; /* store the fcpl id here between
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;
+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,20 +4354,20 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int
if (cache_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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);
failure_mssg = msg;
}
else if ((spec_size < 1) || (spec == NULL)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to multi entry test #%d.", test_num);
failure_mssg = msg;
}
@@ -4377,7 +4379,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "bad data in spec[%u] on entry to multi entry test #%d.", u,
test_num);
failure_mssg = msg;
@@ -4425,7 +4427,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Bad status on entry %u after flush in multi entry test #%d.", u,
test_num);
failure_mssg = msg;
@@ -4440,7 +4442,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in multi entry test #%d.",
test_num);
failure_mssg = msg;
@@ -4454,13 +4456,13 @@ check_flush_cache__multi_entry_test(H5F_t *file_ptr, int test_num, unsigned int
if (!pass) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after cleanup in multi entry test #%d.",
test_num);
failure_mssg = msg;
@@ -4473,9 +4475,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,20 +4509,20 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i
if (cache_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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);
failure_mssg = msg;
}
else if ((spec_size < 1) || (spec == NULL)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to pe multi entry test #%d.", test_num);
failure_mssg = msg;
}
@@ -4533,7 +4535,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "bad data in spec[%u] on entry to pe multi entry test #%d.", u,
test_num);
failure_mssg = msg;
@@ -4587,7 +4589,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Bad status on entry %u after flush in pe multi entry test #%d.", u,
test_num);
failure_mssg = msg;
@@ -4602,7 +4604,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in pe multi entry test #%d.",
test_num);
failure_mssg = msg;
@@ -4616,13 +4618,13 @@ check_flush_cache__pe_multi_entry_test(H5F_t *file_ptr, int test_num, unsigned i
if (!pass) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128,
"Unexpected cache len/size after cleanup in pe multi entry test #%d.", test_num);
failure_mssg = msg;
@@ -4635,9 +4637,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 +4655,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 +4673,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 +4718,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 +4728,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 +4755,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 +4812,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 +4822,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 +4849,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 +4903,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 +4913,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 +4969,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 +4979,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 +5042,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 +5052,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 +5096,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 +5139,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 +5149,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 +5198,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 +5232,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 +5242,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 +5286,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 +5323,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 +5333,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 +5381,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 +5416,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 +5426,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 +5498,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 +5508,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 +5578,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 +5588,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 +5659,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 +5669,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 +5739,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 +5749,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 +5803,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 +5843,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 +5853,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 +5910,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 +5958,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 +5968,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 +5995,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 +6022,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 +6049,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 +6146,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 +6156,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 +6183,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 +6210,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 +6237,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 +6264,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 +6291,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 +6389,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 +6399,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 +6426,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 +6453,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 +6480,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 +6507,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 +6534,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 +6628,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 +6638,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 +6665,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 +6692,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 +6747,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 +6757,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 +6784,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 +6811,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 +6936,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 +6946,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 +6973,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 +7000,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 +7027,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 +7054,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 +7081,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 +7108,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 +7135,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 +7162,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 +7189,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 +7344,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 +7354,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 +7381,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 +7408,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 +7435,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 +7462,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 +7489,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 +7516,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 +7543,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 +7570,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 +7597,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 +7677,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 +7687,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 +7714,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 +7741,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 +7768,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 +7795,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 +7853,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 +7863,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 +7890,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 +7917,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 +7944,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 +7971,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,20 +8040,20 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu
if (cache_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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);
failure_mssg = msg;
}
else if ((spec_size < 1) || (spec == NULL)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "missing/bad test spec on entry to flush op test #%d.", test_num);
failure_mssg = msg;
}
@@ -8065,7 +8067,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "bad data in spec[%d] on entry to flush op test #%d.", i, test_num);
failure_mssg = msg;
}
@@ -8080,7 +8082,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "bad data in check[%d] on entry to flush op test #%d.", i, test_num);
failure_mssg = msg;
}
@@ -8099,7 +8101,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,7 +8126,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size before flush in flush op test #%d.",
test_num);
failure_mssg = msg;
@@ -8137,7 +8139,7 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu
if (!pass) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "flush with flags 0x%x failed in flush op test #%d.", flush_flags,
test_num);
failure_mssg = msg;
@@ -8154,7 +8156,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Bad status on entry %d after flush op test #%d.", i, test_num);
failure_mssg = msg;
}
@@ -8168,7 +8170,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Check1 failed on entry %d after flush op test #%d.", i,
test_num);
failure_mssg = msg;
@@ -8191,7 +8193,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Check2 failed on entry %d after flush op test #%d.", i,
test_num);
failure_mssg = msg;
@@ -8208,7 +8210,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in flush op test #%d.",
test_num);
failure_mssg = msg;
@@ -8228,7 +8230,7 @@ check_flush_cache__flush_op_test(H5F_t *file_ptr, int test_num, unsigned int flu
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;
+ pass = false;
HDsnprintf(msg, (size_t)128,
"Unexpected cache len/size/cs/ds after cleanup in flush op test #%d.", test_num);
failure_mssg = msg;
@@ -8243,9 +8245,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 +8260,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 +8275,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 +8298,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 +8312,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 +8328,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 +8349,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 +8374,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 +8397,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 +8455,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 +8494,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 +8528,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 +8602,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 +8652,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 +8668,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 +8714,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 +8732,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 +8782,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 +8809,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 +8846,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 +8890,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 +8913,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 +8955,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 +8972,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 +9016,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 +9034,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 +9069,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 +9177,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 +9219,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 +9240,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 +9258,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 +9283,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 +9310,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 +9365,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 +9377,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 +9392,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 +9420,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 +9453,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 +9478,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 +9502,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 +9535,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 +9551,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 +9566,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 +9581,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 +9596,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 +9611,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 +9626,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 +9641,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 +9656,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 +9671,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 +9686,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 +9701,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 +9716,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 +9731,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 +9746,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 +9761,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 +9777,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 +9793,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 +9808,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 +9823,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 +9838,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 +9853,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 +9868,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 +9883,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 +9898,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 +9913,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 +9928,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 +9943,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 +9958,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 +9973,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 +9988,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 +10003,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 +10019,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 +10035,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 +10050,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 +10065,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 +10080,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 +10095,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 +10110,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 +10125,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 +10140,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 +10155,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 +10170,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 +10185,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 +10200,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 +10215,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 +10230,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 +10245,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 +10261,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 +10277,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 +10292,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 +10307,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 +10322,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 +10337,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 +10352,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 +10367,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 +10382,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 +10397,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 +10412,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 +10427,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 +10442,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 +10457,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 +10472,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 +10487,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 +10503,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 +10541,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 +10579,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 +10587,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 +10639,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 +10711,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,20 +10722,20 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty
if (cache_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Bad parameters on entry to single entry test #%d.", test_num);
failure_mssg = msg;
}
@@ -10770,7 +10772,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry status after flush in single entry test #%d.",
test_num);
failure_mssg = msg;
@@ -10780,7 +10782,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache len/size after flush in single entry test #%d.",
test_num);
failure_mssg = msg;
@@ -10799,16 +10801,16 @@ check_flush_cache__single_entry_test(H5F_t *file_ptr, int test_num, int entry_ty
}
else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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,27 +10828,26 @@ 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;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "cache not empty at beginning of pinned single entry test #%d.",
test_num);
failure_mssg = msg;
@@ -10854,7 +10855,7 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e
else if ((entry_type < 0) || (entry_type >= NUMBER_OF_ENTRY_TYPES) || (entry_idx < 0) ||
(entry_idx > max_indices[entry_type])) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Bad parameters on entry to pinned single entry test #%d.", test_num);
failure_mssg = msg;
}
@@ -10900,7 +10901,7 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e
(entry_ptr->serialized != expected_serialized) ||
(entry_ptr->destroyed != expected_destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128,
"Unexpected entry status after flush in pinned single entry test #%d.", test_num);
failure_mssg = msg;
@@ -10910,7 +10911,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128,
"Unexpected cache len/size after flush in pinned single entry test #%d.", test_num);
failure_mssg = msg;
@@ -10946,16 +10947,16 @@ check_flush_cache__pinned_single_entry_test(H5F_t *file_ptr, int test_num, int e
}
else if ((cache_ptr->index_len != 0) || (cache_ptr->index_size != 0)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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 +10977,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 +10991,7 @@ check_get_entry_status(unsigned paged)
else
TESTING("H5C_get_entry_status() functionality");
- pass = TRUE;
+ pass = true;
if (pass) {
@@ -11000,7 +11001,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,13 +11022,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 1.");
failure_mssg = msg;
}
@@ -11047,13 +11048,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 2.");
failure_mssg = msg;
}
@@ -11071,13 +11072,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 3.");
failure_mssg = msg;
}
@@ -11095,13 +11096,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 4.");
failure_mssg = msg;
}
@@ -11119,13 +11120,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 5.");
failure_mssg = msg;
}
@@ -11143,13 +11144,13 @@ check_get_entry_status(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 6.");
failure_mssg = msg;
}
@@ -11157,7 +11158,7 @@ check_get_entry_status(unsigned paged)
if (pass) {
- takedown_cache(file_ptr, FALSE, FALSE);
+ takedown_cache(file_ptr, false, false);
}
if (pass) {
@@ -11191,10 +11192,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 +11206,7 @@ check_expunge_entry(unsigned paged)
else
TESTING("H5C_expunge_entry() functionality");
- pass = TRUE;
+ pass = true;
if (pass) {
@@ -11228,19 +11229,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 1.");
failure_mssg = msg;
}
else if ((entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 1.");
failure_mssg = msg;
}
@@ -11264,19 +11265,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 2.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 2.");
failure_mssg = msg;
}
@@ -11302,19 +11303,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 3.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 3.");
failure_mssg = msg;
}
@@ -11338,19 +11339,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 4.");
failure_mssg = msg;
}
else if ((entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 4.");
failure_mssg = msg;
}
@@ -11374,19 +11375,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 5.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 5.");
failure_mssg = msg;
}
@@ -11412,19 +11413,19 @@ check_expunge_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 6.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 6.");
failure_mssg = msg;
}
@@ -11432,7 +11433,7 @@ check_expunge_entry(unsigned paged)
if (pass) {
- takedown_cache(file_ptr, FALSE, FALSE);
+ takedown_cache(file_ptr, false, false);
}
if (pass) {
@@ -11475,7 +11476,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 +11513,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 +11522,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 +11533,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 +11542,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 +11553,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 +11562,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 +11573,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 +11582,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 +11593,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 +11602,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 +11613,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 +11622,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 +11633,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 +11642,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 +11653,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 +11662,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 +11673,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 +11682,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 +11697,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 +11706,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 +11717,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 +11726,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 +11772,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 +11794,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 +11810,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 +11856,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 +11877,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 +11918,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 +11936,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,13 +11955,13 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
if (cache_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "spec_ptr NULL on entry to move test #%u.", test_num);
failure_mssg = msg;
}
@@ -11974,7 +11975,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "bad entry_ptr in move test #%u.", test_num);
failure_mssg = msg;
}
@@ -11990,7 +11991,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,7 +12005,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
if (!(entry_ptr->header.is_pinned)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Pinned entry not pinned after move in test #%u.", test_num);
failure_mssg = msg;
}
@@ -12021,7 +12022,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
if (test_ptr == NULL) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Pinned entry not in pel after move in test #%u.",
test_num);
failure_mssg = msg;
@@ -12035,7 +12036,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
if (entry_ptr->header.is_pinned) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unpinned entry pinned after move in test #%u.", test_num);
failure_mssg = msg;
}
@@ -12045,7 +12046,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Entry not at head of LRU after move in test #%u.",
test_num);
failure_mssg = msg;
@@ -12056,7 +12057,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Protected entry not protected after move in test #%u.",
test_num);
failure_mssg = msg;
@@ -12068,7 +12069,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
else {
if (entry_ptr->header.is_protected) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unprotected entry not unprotected after move in test #%u.",
test_num);
failure_mssg = msg;
@@ -12077,7 +12078,7 @@ check_move_entry__run_test(H5F_t *file_ptr, unsigned test_num, struct move_entry
}
/* 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 +12106,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 +12121,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 +12140,19 @@ check_pin_protected_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_pin_protected_entry() reports failure.");
failure_mssg = msg;
}
else if (!(entry_ptr->header.is_pinned)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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 +12160,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 +12195,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 +12240,7 @@ check_resize_entry(unsigned paged)
* the cache.
*/
- pass = TRUE;
+ pass = true;
/* tests with only one entry in the cache: */
@@ -12251,7 +12252,7 @@ check_resize_entry(unsigned paged)
if (file_ptr == NULL) {
- pass = FALSE;
+ pass = false;
failure_mssg = "file_ptr NULL from setup_cache.";
}
else {
@@ -12268,7 +12269,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 1.");
failure_mssg = msg;
}
@@ -12284,7 +12285,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 2.");
failure_mssg = msg;
}
@@ -12297,19 +12298,19 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 1.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 1.");
failure_mssg = msg;
}
@@ -12321,7 +12322,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry().");
failure_mssg = msg;
}
@@ -12331,7 +12332,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 1.");
failure_mssg = msg;
}
@@ -12340,8 +12341,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,7 +12354,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE / 2))))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 3.");
failure_mssg = msg;
}
@@ -12366,20 +12367,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 2.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 2.");
failure_mssg = msg;
}
@@ -12396,7 +12397,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry().");
failure_mssg = msg;
}
@@ -12406,7 +12407,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 2.");
failure_mssg = msg;
}
@@ -12415,8 +12416,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,7 +12429,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 4.");
failure_mssg = msg;
}
@@ -12441,20 +12442,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 3.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 3.");
failure_mssg = msg;
}
@@ -12473,7 +12474,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 1.");
failure_mssg = msg;
}
@@ -12485,7 +12486,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != (LARGE_ENTRY_SIZE / 4))))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 5.");
failure_mssg = msg;
}
@@ -12498,20 +12499,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 4.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 4.");
failure_mssg = msg;
}
@@ -12523,7 +12524,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 2.");
failure_mssg = msg;
}
@@ -12535,7 +12536,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 6.");
failure_mssg = msg;
}
@@ -12548,20 +12549,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 5.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 5.");
failure_mssg = msg;
}
@@ -12581,19 +12582,19 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 6.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 6.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 6.");
failure_mssg = msg;
}
@@ -12604,7 +12605,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 7.");
failure_mssg = msg;
}
@@ -12617,7 +12618,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 8.");
failure_mssg = msg;
}
@@ -12645,7 +12646,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 9.");
failure_mssg = msg;
}
@@ -12662,7 +12663,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 10.");
failure_mssg = msg;
}
@@ -12675,19 +12676,19 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 7.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 7.");
failure_mssg = msg;
}
@@ -12699,7 +12700,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry().");
failure_mssg = msg;
}
@@ -12709,7 +12710,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 3.");
failure_mssg = msg;
}
@@ -12718,8 +12719,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,7 +12734,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_len != 2) ||
(cache_ptr->slist_size != (LARGE_ENTRY_SIZE + (LARGE_ENTRY_SIZE / 2)))))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 11.");
failure_mssg = msg;
}
@@ -12746,20 +12747,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 8.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 8.");
failure_mssg = msg;
}
@@ -12776,7 +12777,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "error(s) in H5C_resize_entry().");
failure_mssg = msg;
}
@@ -12786,7 +12787,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_unprotect() reports failure 4.");
failure_mssg = msg;
}
@@ -12795,8 +12796,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,7 +12809,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != 2 * LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 12.");
failure_mssg = msg;
}
@@ -12821,20 +12822,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 9.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 9.");
failure_mssg = msg;
}
@@ -12853,7 +12854,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 3.");
failure_mssg = msg;
}
@@ -12867,7 +12868,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_len != 2) ||
(cache_ptr->slist_size != (LARGE_ENTRY_SIZE + (LARGE_ENTRY_SIZE / 4)))))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 13.");
failure_mssg = msg;
}
@@ -12880,20 +12881,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 10.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 10.");
failure_mssg = msg;
}
@@ -12905,7 +12906,7 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_resize_entry() reports failure 4.");
failure_mssg = msg;
}
@@ -12917,7 +12918,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 2) || (cache_ptr->slist_size != (2 * LARGE_ENTRY_SIZE))))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 14.");
failure_mssg = msg;
}
@@ -12930,20 +12931,20 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 11.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 11.");
failure_mssg = msg;
}
@@ -12963,19 +12964,19 @@ check_resize_entry(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 12.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 12.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 12.");
failure_mssg = msg;
}
@@ -12987,7 +12988,7 @@ check_resize_entry(unsigned paged)
((cache_ptr->slist_enabled) &&
((cache_ptr->slist_len != 1) || (cache_ptr->slist_size != LARGE_ENTRY_SIZE)))) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 15.");
failure_mssg = msg;
}
@@ -13010,7 +13011,7 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 16.");
failure_mssg = msg;
}
@@ -13018,7 +13019,7 @@ check_resize_entry(unsigned paged)
if (pass) {
- takedown_cache(file_ptr, FALSE, FALSE);
+ takedown_cache(file_ptr, false, false);
}
if (pass) {
@@ -13053,9 +13054,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 +13104,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 +13118,7 @@ check_evictions_enabled(unsigned paged)
if (file_ptr == NULL) {
- pass = FALSE;
+ pass = false;
failure_mssg = "file_ptr NULL from setup_cache.";
}
else {
@@ -13135,9 +13136,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 1.");
failure_mssg = msg;
}
@@ -13151,9 +13152,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected evictions enabled 1.");
failure_mssg = msg;
}
@@ -13179,9 +13180,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 2.");
failure_mssg = msg;
}
@@ -13205,9 +13206,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 3.");
failure_mssg = msg;
}
@@ -13225,19 +13226,19 @@ check_evictions_enabled(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 1.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 1.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 1.");
failure_mssg = msg;
}
@@ -13261,9 +13262,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 4.");
failure_mssg = msg;
}
@@ -13281,19 +13282,19 @@ check_evictions_enabled(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 2.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 2.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 2.");
failure_mssg = msg;
}
@@ -13305,11 +13306,11 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "can't disable evictions 1.");
failure_mssg = msg;
}
@@ -13324,9 +13325,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 5.");
failure_mssg = msg;
}
@@ -13351,9 +13352,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 6.");
failure_mssg = msg;
}
@@ -13377,9 +13378,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 7.");
failure_mssg = msg;
}
@@ -13391,11 +13392,11 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "can't enable evictions 1.");
failure_mssg = msg;
}
@@ -13420,9 +13421,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 8.");
failure_mssg = msg;
}
@@ -13450,9 +13451,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 9.");
failure_mssg = msg;
}
@@ -13470,19 +13471,19 @@ check_evictions_enabled(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 3.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 3.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 3.");
failure_mssg = msg;
}
@@ -13500,19 +13501,19 @@ check_evictions_enabled(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 4.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 4.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 4.");
failure_mssg = msg;
}
@@ -13524,11 +13525,11 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "can't disable evictions 2.");
failure_mssg = msg;
}
@@ -13555,9 +13556,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 10.");
failure_mssg = msg;
}
@@ -13569,11 +13570,11 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "can't enable evictions 2.");
failure_mssg = msg;
}
@@ -13597,9 +13598,9 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected cache status 11.");
failure_mssg = msg;
}
@@ -13617,19 +13618,19 @@ check_evictions_enabled(unsigned paged)
if (result < 0) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "H5C_get_entry_status() reports failure 5.");
failure_mssg = msg;
}
else if (in_cache) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected status 5.");
failure_mssg = msg;
}
else if ((!entry_ptr->deserialized) || (entry_ptr->serialized) || (!entry_ptr->destroyed)) {
- pass = FALSE;
+ pass = false;
HDsnprintf(msg, (size_t)128, "Unexpected entry history 5.");
failure_mssg = msg;
}
@@ -13641,11 +13642,11 @@ 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;
+ pass = false;
HDsnprintf(msg, (size_t)128, "can't disable evictions 3.");
failure_mssg = msg;
}
@@ -13656,7 +13657,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 +13701,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 +13722,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 +13748,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 +13788,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 +13804,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 +13832,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 +13870,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 +13893,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 +13923,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 +13964,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 +13989,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 +14040,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 +14069,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 +14080,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 +14122,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 +14149,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 +14164,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 +14213,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 +14246,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 +14265,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 +14276,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 +14318,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 +14343,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 +14355,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 +14397,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 +14423,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 +14475,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 +14502,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 +14551,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 +14582,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 +14597,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 +14612,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 +14664,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 +14690,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 +14699,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 +14730,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 +14738,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 +14774,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 +14804,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 +14819,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 +14830,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 +14872,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 +14896,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 +14908,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 +14935,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 +14948,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 +14990,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 +15016,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 +15028,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 +15073,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 +15099,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 +15115,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 +15124,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 +15140,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 +15152,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 +15188,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 +15227,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 +15238,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 +15258,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 +15275,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 +15288,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 +15320,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 +15329,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 +15346,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 +15362,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 +15376,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 +15389,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 +15409,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 +15417,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 +15429,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 +15442,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 +15455,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 +15468,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 +15481,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 +15494,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 +15507,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 +15521,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 +15534,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 +15548,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 +15561,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 +15575,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 +15589,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 +15603,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 +15616,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 +15630,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 +15643,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 +15657,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 +15671,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 +15685,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 +15703,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 +15719,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 +15732,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 +15752,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 +15765,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 +15779,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 +15793,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 +15807,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 +15821,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 +15835,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 +15849,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 +15862,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 +15875,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 +15888,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 +15901,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 +15914,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 +15927,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 +15948,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 +15961,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 +15974,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 +15987,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 +16000,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 +16018,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 +16034,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 +16047,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 +16067,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 +16080,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 +16093,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 +16106,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 +16120,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 +16133,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 +16147,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 +16160,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 +16174,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 +16194,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 +16210,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 +16223,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 +16243,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 +16262,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 +16276,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 +16285,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 +16299,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 +16308,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 +16322,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 +16335,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 +16349,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 +16361,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 +16374,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 +16385,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 +16398,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 +16409,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 +16422,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 +16434,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 +16447,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 +16460,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 +16473,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 +16482,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 +16495,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 +16504,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 +16518,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 +16527,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 +16541,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 +16562,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 +16578,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 +16591,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 +16613,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 +16630,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 +16644,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 +16654,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 +16668,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 +16678,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 +16692,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 +16706,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 +16720,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 +16733,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 +16747,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 +16759,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 +16773,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 +16785,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 +16799,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 +16811,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 +16825,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 +16837,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 +16851,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 +16863,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 +16877,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 +16889,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 +16902,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 +16915,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 +16928,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 +16942,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 +16955,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 +16965,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 +16979,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 +16989,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 +17003,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 +17013,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 +17027,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 +17044,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 +17060,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 +17073,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 +17095,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 +17112,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 +17126,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 +17136,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 +17150,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 +17160,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 +17174,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 +17188,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 +17202,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 +17215,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 +17228,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 +17240,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 +17253,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 +17265,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 +17278,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 +17291,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 +17304,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 +17318,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 +17331,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 +17341,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 +17354,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 +17364,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 +17378,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 +17388,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 +17402,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 +17421,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 +17437,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 +17453,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 +17473,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 +17487,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 +17501,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 +17511,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 +17525,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 +17535,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 +17549,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 +17560,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 +17574,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 +17585,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 +17599,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 +17610,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 +17624,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 +17636,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 +17650,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 +17668,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 +17684,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 +17697,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 +17717,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 +17731,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 +17745,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 +17755,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 +17769,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 +17787,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 +17802,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 +17815,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 +17830,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 +17843,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 +17858,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 +17872,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 +17887,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 +17899,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 +17914,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 +17927,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 +17942,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 +17956,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 +17971,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 +17985,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 +18000,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 +18014,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 +18029,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 +18041,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 +18056,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 +18068,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 +18083,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 +18095,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 +18110,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 +18122,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 +18137,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 +18149,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 +18164,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 +18194,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 +18210,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 +18226,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 +18239,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 +18259,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 +18279,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 +18304,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 +18328,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 +18350,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 +18370,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 +18379,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 +18406,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 +18428,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 +18447,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 +18469,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 +18488,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 +18512,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 +18521,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 +18548,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 +18562,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 +18584,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 +18605,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 +18626,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 +18648,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 +18666,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 +18675,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 +18689,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 +18705,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 +18723,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 +18741,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 +18773,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 +18788,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 +18806,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 +18815,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 +18824,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 +18840,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 +18858,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 +18876,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 +18908,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 +18927,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 +18944,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 +18960,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 +18973,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 +18996,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 +19009,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 +19032,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 +19040,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 +19055,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 +19065,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 +19080,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 +19093,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 +19104,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 +19112,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 +19126,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 +19137,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 +19149,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 +19182,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 +19192,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 +19208,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 +19222,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 +19235,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 +19253,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 +19268,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 +19277,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 +19297,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 +19313,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 +19326,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 +19348,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 +19361,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 +19376,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 +19389,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 +19404,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 +19417,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 +19432,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 +19449,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 +19465,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 +19477,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 +19499,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 +19512,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 +19527,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 +19540,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 +19555,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 +19568,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 +19583,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 +19600,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 +19616,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 +19629,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 +19651,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 +19664,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 +19679,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 +19692,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 +19707,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 +19720,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 +19735,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 +19751,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 +19767,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 +19780,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 +19805,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 +19818,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 +19833,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 +19845,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 +19860,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 +19873,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 +19888,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 +19905,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 +19921,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 +19934,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 +19956,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 +19969,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 +19984,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 +19996,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 +20011,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 +20024,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 +20039,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 +20055,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 +20071,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 +20084,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 +20106,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 +20119,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 +20134,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 +20146,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 +20161,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 +20174,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 +20189,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 +20207,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 +20223,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 +20236,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 +20258,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 +20269,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 +20280,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 +20295,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 +20307,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 +20322,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 +20336,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 +20351,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 +20363,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 +20378,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 +20393,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 +20408,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 +20424,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 +20440,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 +20453,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 +20475,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 +20486,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 +20497,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 +20512,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 +20524,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 +20539,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 +20553,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 +20568,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 +20580,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 +20595,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 +20610,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 +20625,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 +20648,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 +20664,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 +20677,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 +20699,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 +20710,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 +20721,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 +20736,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 +20748,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 +20763,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 +20779,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 +20795,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 +20807,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 +20822,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 +20839,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 +20854,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 +20874,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 +20890,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 +20903,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 +20925,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 +20938,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 +20953,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 +20966,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 +20981,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 +20994,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 +21010,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 +21023,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 +21045,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 +21058,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 +21073,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 +21086,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 +21101,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 +21114,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 +21130,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 +21143,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 +21165,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 +21178,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 +21193,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 +21206,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 +21221,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 +21234,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 +21250,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 +21263,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 +21285,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 +21298,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 +21313,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 +21326,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 +21341,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 +21354,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 +21370,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 +21383,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 +21405,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 +21418,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 +21433,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 +21446,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 +21461,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 +21474,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 +21490,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 +21503,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 +21525,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 +21538,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 +21553,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 +21566,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 +21581,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 +21621,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 +21637,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 +21650,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 +21671,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 +21682,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 +21697,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 +21714,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 +21729,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 +21739,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 +21775,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 +21786,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 +21802,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 +21816,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 +21829,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 +21848,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 +21857,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 +21873,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 +21889,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 +21902,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 +21924,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 +21940,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 +21963,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 +21976,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 +21989,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 +22005,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 +22021,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 +22037,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 +22053,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 +22066,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 +22088,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 +22102,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 +22113,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 +22128,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 +22142,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 +22155,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 +22171,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 +22184,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 +22206,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 +22217,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 +22233,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 +22249,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 +22262,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 +22285,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 +22299,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 +22312,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 +22329,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 +22342,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 +22358,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 +22371,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 +22394,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 +22411,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 +22421,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 +22464,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 +22480,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 +22494,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 +22510,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 +22532,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 +22541,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 +22552,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 +22567,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 +22583,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 +22596,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 +22619,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 +22636,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 +22652,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 +22665,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 +22688,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 +22705,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 +22722,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 +22735,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 +22758,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 +22773,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 +22790,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 +22803,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 +22826,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 +22843,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 +22859,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 +22872,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 +22895,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 +22910,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 +22926,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 +22939,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 +22962,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 +22979,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 +22996,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 +23009,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 +23032,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 +23047,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 +23063,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 +23076,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 +23099,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 +23114,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 +23130,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 +23143,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 +23166,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 +23183,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 +23200,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 +23213,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 +23236,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 +23251,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 +23268,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 +23281,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 +23304,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 +23321,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 +23337,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 +23350,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 +23373,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 +23388,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 +23404,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 +23417,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 +23440,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 +23457,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 +23473,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 +23486,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 +23509,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 +23524,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 +23540,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 +23553,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 +23576,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 +23591,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 +23607,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 +23620,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 +23643,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 +23660,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 +23676,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 +23689,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 +23712,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 +23729,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 +23745,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 +23758,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 +23781,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 +23798,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 +23814,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 +23827,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 +23850,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 +23865,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 +23881,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 +23894,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 +23917,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 +23934,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 +23950,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 +23963,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 +23986,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 +24001,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 +24017,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 +24030,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 +24053,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 +24070,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 +24086,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 +24099,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 +24122,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 +24137,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 +24153,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 +24166,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 +24189,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 +24206,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 +24222,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 +24235,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 +24258,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 +24273,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 +24289,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 +24302,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 +24325,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 +24342,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 +24358,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 +24371,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 +24394,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 +24409,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 +24425,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 +24438,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 +24461,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 +24478,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 +24494,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 +24507,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 +24530,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 +24545,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 +24561,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 +24574,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 +24597,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 +24617,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 +24628,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 +24685,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 +24701,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 +24715,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 +24728,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 +24747,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 +24756,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 +24770,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 +24781,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 +24812,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 +24853,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 +24879,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 +24895,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 +24926,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 +24958,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 +24974,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 +25022,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 +25055,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 +25073,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 +25091,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 +25109,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 +25163,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 +25178,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 +25195,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 +25211,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 +25246,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 +25305,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 +25371,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 +25425,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 +25471,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 +25486,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 +25547,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 +25601,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 +25615,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 +25627,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 +25673,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 +25689,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 +25730,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 +25778,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 +25823,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 +25849,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 +25893,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 +25906,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 +25929,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 +25945,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 +25994,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 +26025,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 +26064,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 +26100,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 +26134,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 +26161,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 +26188,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 +26219,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 +26247,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 +26275,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 +26309,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 +26336,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 +26363,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 +26394,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 +26422,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 +26450,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 +26484,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 +26511,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 +26538,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 +26569,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 +26597,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 +26625,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 +26659,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 +26686,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 +26713,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 +26744,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 +26772,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 +26800,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 +26833,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 +26874,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 +26910,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 +26937,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 +26964,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 +26995,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 +27023,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 +27051,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 +27087,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 +27114,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 +27141,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 +27212,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 +27240,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 +27268,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 +27304,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 +27331,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 +27358,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 +27429,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 +27457,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 +27485,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 +27523,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 +27558,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 +27596,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 +27639,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 +27673,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 +27700,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 +27733,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 +27761,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 +27777,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 +27811,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 +28032,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 +28040,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 +28076,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 +28089,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 +28111,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 +28141,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 +28157,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 +28177,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 +28211,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 +28238,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 +28256,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 +28267,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 +28288,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 +28314,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 +28354,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 +28369,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 +28381,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 +28405,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 +28440,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 +28473,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 +28494,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 +28506,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 +28530,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 +28563,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 +28597,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 +28623,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 +28649,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 +28664,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 +28691,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 +28718,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 +28752,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 +28771,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 +28790,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 +28819,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 +28845,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 +28871,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 +28889,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 +28916,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 +28943,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 +28977,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 +28996,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 +29015,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 +29047,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 +29063,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 +29077,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 +29107,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 +29151,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 +29183,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 +29199,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 +29213,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 +29243,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 +29287,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 +29322,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 +29348,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 +29374,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 +29389,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 +29417,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 +29446,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 +29483,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 +29502,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 +29521,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 +29555,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 +29581,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 +29607,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 +29642,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 +29670,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 +29700,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 +29757,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 +29776,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 +29795,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 +29829,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 +29855,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 +29881,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 +29916,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 +29944,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 +29974,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 +30031,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 +30050,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 +30069,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 +30102,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 +30128,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 +30174,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 +30229,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 +30256,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 +30283,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 +30355,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 +30392,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 +30411,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 +30444,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 +30470,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 +30516,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 +30571,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 +30598,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 +30625,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 +30697,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 +30734,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 +30753,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 +30767,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 +30803,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 +30816,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 +30841,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 +30869,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 +30899,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 +30929,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 +30958,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 +30980,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 +31005,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 +31013,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 +31021,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 +31038,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 +31054,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 +31081,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 +31132,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 +31188,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 +31229,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 +31270,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 +31283,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 +31329,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 +31366,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 +31376,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 +31393,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 +31417,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 +31456,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 +31497,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 +31539,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 +31561,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 +31597,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 +31613,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 +31653,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 +31687,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 +31704,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 +31718,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 +31736,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 +31801,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 +31814,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 +31851,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 +31876,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 +31916,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 +31935,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 +31957,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 +31975,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 +32044,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 +32057,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 +32093,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 +32137,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 +32146,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 +32175,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 +32202,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 +32225,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 +32233,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 +32267,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 +32286,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 +32302,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 +32316,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 +32341,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 +32362,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 +32408,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 +32420,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 +32468,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 +32492,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 +32536,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 +32546,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 +32562,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 +32583,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 +32611,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 +32620,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 +32716,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 +32743,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 +32755,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 +32821,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 +32834,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 +32859,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 +32883,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 +32921,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 +32947,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 +32975,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 +32987,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 +33036,7 @@ check_stats(unsigned paged)
#if H5C_COLLECT_CACHE_STATS
- pass = TRUE;
+ pass = true;
reset_entries();
@@ -33048,7 +33049,7 @@ check_stats(unsigned paged)
if (pass) {
- takedown_cache(file_ptr, FALSE, FALSE);
+ takedown_cache(file_ptr, false, false);
}
if (pass) {
@@ -33088,7 +33089,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 +33105,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 +33156,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 +33177,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 +33192,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 +33229,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 +33251,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 +33266,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 +33303,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 +33326,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 +33341,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 +33364,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 +33392,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 +33415,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 +33430,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 +33467,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,8 +33510,8 @@ 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;
H5F_t *file_ptr = NULL;
@@ -33527,7 +33528,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 +33536,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 +33546,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 +33559,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 +33569,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 +33601,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 +33619,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 +33628,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 +33675,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 +33685,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 +33700,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 +33711,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 +33726,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 +33745,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 +33753,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 +33767,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 +33809,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 +33818,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.";
}
}
@@ -33874,7 +33875,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 +33924,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 */