[PATCH weston 5/5] tests: list available tests if an invalid test name is given

Peter Hutterer peter.hutterer at who-t.net
Tue Sep 10 23:08:47 PDT 2013


---
 tests/weston-test-runner.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/weston-test-runner.c b/tests/weston-test-runner.c
index fefb93b..ed5baf0 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);
 		}
 
-- 
1.8.3.1



More information about the wayland-devel mailing list