1 /* Copyright (c) 2023 Codecoup
2  * SPDX-License-Identifier: Apache-2.0
3  */
4 
5 #include "test_utils.h"
6 
test_init(void)7 void test_init(void)
8 {
9 	bst_result = In_progress;
10 	bst_ticker_set_next_tick_absolute(SIMULATED_TEST_TIMEOUT);
11 }
12 
test_tick(bs_time_t HW_device_time)13 void test_tick(bs_time_t HW_device_time)
14 {
15 	bs_trace_debug_time(0, "Simulation ends now.\n");
16 	if (bst_result == In_progress) {
17 		bst_result = Failed;
18 		bs_trace_error("Test did not pass before simulation ended. Consider increasing "
19 			       "simulation length.\n");
20 	}
21 }
22