6 int test_print_result( char *testname, int failed, int total )
8 fprintf( stderr, "%s: %d/%d tests passed\n", testname, total-failed, total );
10 total_fails += failed;
14 void test_print_failure( char *testname, int number, char *message )
16 if( message == NULL ) {
17 fprintf( stderr, "%s: Test %d failed!\n", testname, number );
19 fprintf( stderr, "%s: Test %d failed: %s\n", testname, number, message );
32 fprintf( stderr, "Total: %d/%d tests passed (%d%%)\n", total_tests-total_fails,
33 total_tests, ((total_tests-total_fails)*100)/total_tests );
.