mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 14:48:09 +02:00
test: check for empty tests immediately, not later when we're running
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1062>
This commit is contained in:
parent
6d26d83f00
commit
75ce537342
1 changed files with 6 additions and 6 deletions
|
|
@ -1313,12 +1313,6 @@ litest_run(struct list *tests)
|
||||||
|
|
||||||
list_init(&created_files_list);
|
list_init(&created_files_list);
|
||||||
|
|
||||||
if (list_empty(tests)) {
|
|
||||||
fprintf(stderr,
|
|
||||||
"Error: filters are too strict, no tests to run.\n");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (getenv("LITEST_VERBOSE"))
|
if (getenv("LITEST_VERBOSE"))
|
||||||
verbose = true;
|
verbose = true;
|
||||||
|
|
||||||
|
|
@ -5038,6 +5032,12 @@ main(int argc, char **argv)
|
||||||
litest_init_test_devices(&devices);
|
litest_init_test_devices(&devices);
|
||||||
|
|
||||||
setup_tests();
|
setup_tests();
|
||||||
|
if (list_empty(&all_tests)) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"Error: filters are too strict, no tests to run.\n");
|
||||||
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
if (mode == LITEST_MODE_LIST) {
|
if (mode == LITEST_MODE_LIST) {
|
||||||
litest_list_tests(&all_tests);
|
litest_list_tests(&all_tests);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue