Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1062>
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"))
verbose = true;
litest_init_test_devices(&devices);
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) {
litest_list_tests(&all_tests);
return EXIT_SUCCESS;