1.1 --- a/test/sh4/testsh4.c Wed Sep 20 09:52:32 2006 +0000
1.2 +++ b/test/sh4/testsh4.c Sat Sep 23 10:35:29 2006 +0000
1.6 +int total_tests = 0;
1.7 +int total_fails = 0;
1.9 int test_print_result( char *testname, int failed, int total )
1.11 fprintf( stderr, "%s: %d/%d tests passed\n", testname, total-failed, total );
1.12 + total_tests += total;
1.13 + total_fails += failed;
1.17 -void test_print_failure( char *testname, int number )
1.18 +void test_print_failure( char *testname, int number, char *message )
1.20 - fprintf( stderr, "%s: Test %d failed!\n", testname, number );
1.21 + if( message == NULL ) {
1.22 + fprintf( stderr, "%s: Test %d failed!\n", testname, number );
1.24 + fprintf( stderr, "%s: Test %d failed: %s\n", testname, number, message );
1.37 + fprintf( stderr, "Total: %d/%d tests passed (%d%%)\n", total_tests-total_fails,
1.38 + total_tests, ((total_tests-total_fails)*100)/total_tests );