X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=common%2Ft.c;h=f42054b7a434726f0bd2efde2a935ad5cc6ba733;hp=02d77c77ee38ebb03be23928a7312f2c597835a3;hb=7d87d3f6a765bea943beb384f9bbf359e3768c0a;hpb=d14d36762cc2131357345f960f7bdf86af140af8 diff --git a/common/t.c b/common/t.c index 02d77c7..f42054b 100644 --- a/common/t.c +++ b/common/t.c @@ -9,9 +9,9 @@ #include #include "test.h" -#define B(t) -#define T(t) void t(); -#include "main.h" +#define B(f) +#define T(f) void f(); +#include "tests.h" #undef T static int failed; @@ -22,7 +22,6 @@ static int count; static int nfailed; static void errtimer() { error("use *_timer in benchmarks only\n"); } -int N = 0; void start_timer() { errtimer(); } void stop_timer() { errtimer(); } void reset_timer() { errtimer(); } @@ -79,6 +78,6 @@ static int summary() { int main() { #define T(t) run(#t, t); -#include "main.h" +#include "tests.h" return summary(); }