src/test/input.c
DEFINE_GENERIC_TEST_RUNNER(test_input)

TEST_INIT(init)
{
    time_init();
    CHECK_TRUE(thread_init());

    sys_test_input_set_joy_connected_on_init(0);
    CHECK_TRUE(input_init());
    mem_clear(events, sizeof(events));
    num_events = 0;

    return 1;
}
/*************************************************************************/
/***************** Test runner and init/cleanup routines *****************/
/*************************************************************************/
Test runner and init/cleanup routines
Test runner and init / cleanup routines
DEFINE_GENERIC_TEST_RUNNER(test_input)
TEST_INIT(init)
{
    time_init();
    CHECK_TRUE(thread_init());
    sys_test_input_set_joy_connected_on_init(0);
    CHECK_TRUE(input_init());
    mem_clear(events, sizeof(events));
    num_events = 0;
    return 1;
}
DEFINE_GENERIC_TEST_RUNNER ( test_input ) TEST_INIT ( init ) { time_init ( ) ; CHECK_TRUE ( thread_init ( ) ) ; sys_test_input_set_joy_connected_on_init ( 0 ) ; CHECK_TRUE ( input_init ( ) ) ; mem_clear ( events , sizeof ( events ) ) ; num_events = 0 ; return 1 ; }
Test runner and init/cleanup routines
Test runner and init / cleanup routines