From 936348fd730f2d3ebc5376b555f0cfc1e633c019 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jan 2010 21:27:39 +0000 Subject: Move unit testing and coverage framework into autowaf. Make raul tests return 0 on success, 1 on failure. Test coverage for Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/slv2@2368 a436a847-0d15-0410-975c-d299462d15a1 --- test/slv2_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/slv2_test.c') diff --git a/test/slv2_test.c b/test/slv2_test.c index 842f3bb..0ee3caf 100644 --- a/test/slv2_test.c +++ b/test/slv2_test.c @@ -996,7 +996,7 @@ run_tests() { int i; for (i = 0; tests[i].title; i++) { - printf("--- Test: %s\n", tests[i].title); + printf("*** Test %s\n", tests[i].title); if (!tests[i].func()) { printf("\nTest failed\n"); /* test case that wasn't able to be executed at all counts as 1 test + 1 error */ @@ -1018,7 +1018,7 @@ main(int argc, char *argv[]) init_tests(); run_tests(); cleanup(); - printf("\n***\n*** Test Results: %d tests, %d errors\n***\n\n", test_count, error_count); + printf("\n*** Test Results: %d tests, %d errors\n\n", test_count, error_count); return error_count ? 1 : 0; } -- cgit v1.2.1