=== modified file 't/taplib.c' --- t/taplib.c 2013-01-04 17:39:41 +0000 +++ t/taplib.c 2011-03-31 12:42:27 +0000 @@ -12,23 +12,11 @@ printf("1..%d\n", n); } -void pass(char *name) -{ - printf("ok %d - %s\n", nexttest++, name); -} - -void fail(char *name) -{ - printf("not ok %d - %s\n", nexttest++, name); - _exit_status = 1; -} - void ok(int cmp, char *name) { - if(cmp) - pass(name); - else - fail(name); + printf("%s %d - %s\n", cmp ? "ok" : "not ok", nexttest++, name); + if(!cmp) + _exit_status = 1; } void diag(char *fmt, ...) === modified file 't/taplib.h' --- t/taplib.h 2013-01-04 17:39:41 +0000 +++ t/taplib.h 2011-03-31 12:42:27 +0000 @@ -1,7 +1,5 @@ void plan_tests(int n); void ok(int cmp, char *name); -void pass(char *name); -void fail(char *name); void is_int(int got, int expect, char *name); void is_str(const char *got, const char *expect, char *name); int exit_status(void);