summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-09-11 16:08:47 +1000
committerKristian Høgsberg <krh@bitplanet.net>2013-09-11 13:41:22 -0700
commit9715d4db54bee69ae6487010809d2ff67339b089 (patch)
tree374b50e6d754aa8e3cd1f812939b2c647a60571e /tests
parent534f0a4dd1f55eafb132cd6942d007831e56c68a (diff)
tests: list available tests if an invalid test name is given
Diffstat (limited to 'tests')
-rw-r--r--tests/weston-test-runner.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/weston-test-runner.c b/tests/weston-test-runner.c
index fefb93bf..ed5baf08 100644
--- a/tests/weston-test-runner.c
+++ b/tests/weston-test-runner.c
@@ -82,6 +82,7 @@ int main(int argc, char *argv[])
t = find_test(argv[1]);
if (t == NULL) {
fprintf(stderr, "unknown test: \"%s\"\n", argv[1]);
+ list_tests();
exit(EXIT_FAILURE);
}