projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a107507
)
test: fail if the filter leaves us with zero tests
author
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 22 May 2015 04:56:09 +0000
(14:56 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Fri, 22 May 2015 07:18:05 +0000
(17:18 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/litest.c
patch
|
blob
|
history
diff --git
a/test/litest.c
b/test/litest.c
index 1ff535d247a3fd62872c2eac14e951ea388fef2b..de53b67d1b2cef8eaf164563e7be3ef819f4e114 100644
(file)
--- a/
test/litest.c
+++ b/
test/litest.c
@@
-755,6
+755,12
@@
litest_run(int argc, char **argv)
int failed;
SRunner *sr = NULL;
+ if (list_empty(&all_tests)) {
+ fprintf(stderr,
+ "Error: filters are too strict, no tests to run.\n");
+ return 1;
+ }
+
if (in_debugger == -1) {
in_debugger = is_debugger_attached();
if (in_debugger)
@@
-2204,6
+2210,8
@@
litest_parse_argv(int argc, char **argv)
int
main(int argc, char **argv)
{
+ list_init(&all_tests);
+
if (litest_parse_argv(argc, argv) != 0)
return EXIT_FAILURE;