Source
16140
16140
nerrors += test_man_start_4th_recursive_indirect(fapl, &small_cparam, &tparam);
16141
16141
nerrors += test_man_fill_first_4th_recursive_indirect(fapl, &small_cparam, &tparam);
16142
16142
nerrors += test_man_fill_4th_recursive_indirect_row(fapl, &small_cparam, &tparam);
16143
16143
nerrors += test_man_fill_all_4th_recursive_indirect(fapl, &small_cparam, &tparam);
16144
16144
#endif /* ALL_INSERT_TESTS */
16145
16145
/* If this test fails, uncomment the tests above, which build up to this
16146
16146
* level of complexity gradually. -QAK
16147
16147
*/
16148
16148
#ifndef QAK
16149
16149
if(ExpressMode > 1)
16150
-
printf("***Express test mode on. test_man_start_5th_recursive_indirect is skipped\n");
16150
+
HDprintf("***Express test mode on. test_man_start_5th_recursive_indirect is skipped\n");
16151
16151
else
16152
16152
nerrors += test_man_start_5th_recursive_indirect(fapl, &small_cparam, &tparam);
16153
16153
#else /* QAK */
16154
16154
HDfprintf(stderr, "Uncomment tests!\n");
16155
16155
#endif /* QAK */
16156
16156
16157
16157
/*
16158
16158
* Test fractal heap object deletion
16159
16159
*/
16160
16160
/* Simple removal */
16203
16203
break;
16204
16204
16205
16205
#ifndef QAK
16206
16206
/* Simple insertion patterns */
16207
16207
nerrors += test_man_remove_root_direct(fapl, &small_cparam, &tparam);
16208
16208
nerrors += test_man_remove_two_direct(fapl, &small_cparam, &tparam);
16209
16209
nerrors += test_man_remove_first_row(fapl, &small_cparam, &tparam);
16210
16210
nerrors += test_man_remove_first_two_rows(fapl, &small_cparam, &tparam);
16211
16211
nerrors += test_man_remove_first_four_rows(fapl, &small_cparam, &tparam);
16212
16212
if(ExpressMode > 1)
16213
-
printf("***Express test mode on. Some tests skipped\n");
16213
+
HDprintf("***Express test mode on. Some tests skipped\n");
16214
16214
else {
16215
16215
nerrors += test_man_remove_all_root_direct(fapl, &small_cparam, &tparam);
16216
16216
nerrors += test_man_remove_2nd_indirect(fapl, &small_cparam, &tparam);
16217
16217
nerrors += test_man_remove_3rd_indirect(fapl, &small_cparam, &tparam);
16218
16218
} /* end else */
16219
16219
#else /* QAK */
16220
16220
HDfprintf(stderr, "Uncomment tests!\n");
16221
16221
#endif /* QAK */
16222
16222
16223
16223
#ifndef QAK
16237
16237
nerrors += test_man_fill_direct_skip_2nd_indirect_skip_2nd_block_add_skipped(fapl, &small_cparam, &tparam);
16238
16238
nerrors += test_man_fill_direct_skip_indirect_two_rows_add_skipped(fapl, &small_cparam, &tparam);
16239
16239
nerrors += test_man_fill_direct_skip_indirect_two_rows_skip_indirect_row_add_skipped(fapl, &small_cparam, &tparam);
16240
16240
nerrors += test_man_fill_2nd_direct_skip_start_block_add_skipped(fapl, &small_cparam, &tparam);
16241
16241
nerrors += test_man_fill_2nd_direct_skip_2nd_indirect_start_block_add_skipped(fapl, &small_cparam, &tparam);
16242
16242
nerrors += test_man_fill_2nd_direct_fill_direct_skip_3rd_indirect_start_block_add_skipped(fapl, &small_cparam, &tparam);
16243
16243
nerrors += test_man_fill_2nd_direct_fill_direct_skip2_3rd_indirect_start_block_add_skipped(fapl, &small_cparam, &tparam);
16244
16244
nerrors += test_man_fill_3rd_direct_less_one_fill_direct_wrap_start_block_add_skipped(fapl, &small_cparam, &tparam);
16245
16245
nerrors += test_man_fill_1st_row_3rd_direct_fill_2nd_direct_less_one_wrap_start_block_add_skipped(fapl, &small_cparam, &tparam);
16246
16246
if(ExpressMode > 1)
16247
-
printf("***Express test mode on. Some tests skipped\n");
16247
+
HDprintf("***Express test mode on. Some tests skipped\n");
16248
16248
else {
16249
16249
nerrors += test_man_fill_3rd_direct_fill_direct_skip_start_block_add_skipped(fapl, &small_cparam, &tparam);
16250
16250
nerrors += test_man_fill_3rd_direct_fill_2nd_direct_fill_direct_skip_3rd_indirect_start_block_add_skipped(fapl, &small_cparam, &tparam);
16251
16251
nerrors += test_man_fill_3rd_direct_fill_2nd_direct_fill_direct_skip_3rd_indirect_two_rows_start_block_add_skipped(fapl, &small_cparam, &tparam);
16252
16252
nerrors += test_man_fill_3rd_direct_fill_2nd_direct_fill_direct_skip_3rd_indirect_wrap_start_block_add_skipped(fapl, &small_cparam, &tparam);
16253
16253
nerrors += test_man_fill_4th_direct_less_one_fill_2nd_direct_fill_direct_skip_3rd_indirect_wrap_start_block_add_skipped(fapl, &small_cparam, &tparam);
16254
16254
} /* end else */
16255
16255
#else /* QAK */
16256
16256
HDfprintf(stderr, "Uncomment tests!\n");
16257
16257
#endif /* QAK */
16387
16387
tparam.comp = FHEAP_TEST_NO_COMPRESS;
16388
16388
} /* end for */
16389
16389
} /* end block */
16390
16390
#else /* QAK */
16391
16391
HDfprintf(stderr, "Uncomment tests!\n");
16392
16392
#endif /* QAK */
16393
16393
16394
16394
#ifndef QAK
16395
16395
/* Random object insertion & deletion */
16396
16396
if(ExpressMode > 1)
16397
-
printf("***Express test mode on. Some tests skipped\n");
16397
+
HDprintf("***Express test mode on. Some tests skipped\n");
16398
16398
else {
16399
16399
#ifndef QAK
16400
16400
/* Random tests using "small" heap creation parameters */
16401
16401
puts("Using 'small' heap creation parameters");
16402
16402
16403
16403
/* (reduce size of tests when re-opening each time) */
16404
16404
/* XXX: Try to speed things up enough that these tests don't have to be reduced when re-opening */
16405
16405
tparam.del_dir = FHEAP_DEL_FORWARD;
16406
16406
nerrors += test_random((curr_test == FHEAP_TEST_NORMAL ? (hsize_t)(100*1000*1000) : (hsize_t)(50*1000*1000)), fapl, &small_cparam, &tparam);
16407
16407
nerrors += test_random_pow2((curr_test == FHEAP_TEST_NORMAL ? (hsize_t)(100*1000*1000) : (hsize_t)(4*1000*1000)), fapl, &small_cparam, &tparam);