mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
test: switch the unit tests to something resembling a test suite
The tests have inadvertent dependencies on each other so let's avoid those by changing to a system that returns a null-terminated list of test functions and our test runner iterates over those and forks off one process per function.
This commit is contained in:
45
test/input.c
45
test/input.c
@@ -1926,28 +1926,31 @@ dix_enqueue_events(void)
|
||||
inputInfo.devices = NULL;
|
||||
}
|
||||
|
||||
int
|
||||
const testfunc_t*
|
||||
input_test(void)
|
||||
{
|
||||
dix_enqueue_events();
|
||||
dix_double_fp_conversion();
|
||||
dix_input_valuator_masks();
|
||||
dix_input_valuator_masks_unaccel();
|
||||
dix_input_attributes();
|
||||
dix_init_valuators();
|
||||
dix_event_to_core_conversion();
|
||||
dix_event_to_xi1_conversion();
|
||||
dix_check_grab_values();
|
||||
xi2_struct_sizes();
|
||||
dix_grab_matching();
|
||||
dix_valuator_mode();
|
||||
include_byte_padding_macros();
|
||||
include_bit_test_macros();
|
||||
xi_unregister_handlers();
|
||||
dix_valuator_alloc();
|
||||
dix_get_master();
|
||||
input_option_test();
|
||||
mieq_test();
|
||||
static const testfunc_t testfuncs[] = {
|
||||
dix_enqueue_events,
|
||||
dix_double_fp_conversion,
|
||||
dix_input_valuator_masks,
|
||||
dix_input_valuator_masks_unaccel,
|
||||
dix_input_attributes,
|
||||
dix_init_valuators,
|
||||
dix_event_to_core_conversion,
|
||||
dix_event_to_xi1_conversion,
|
||||
dix_check_grab_values,
|
||||
xi2_struct_sizes,
|
||||
dix_grab_matching,
|
||||
dix_valuator_mode,
|
||||
include_byte_padding_macros,
|
||||
include_bit_test_macros,
|
||||
xi_unregister_handlers,
|
||||
dix_valuator_alloc,
|
||||
dix_get_master,
|
||||
input_option_test,
|
||||
mieq_test,
|
||||
NULL,
|
||||
};
|
||||
|
||||
return 0;
|
||||
return testfuncs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user