X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fenv%2Ftest.h;fp=src%2Fenv%2Ftest.h;h=0000000000000000000000000000000000000000;hb=49b23c9be4ac6dc23aa1f8383976670b1d6bdd5b;hp=a6a77069c1310d6f11205ff5fbffe303e9585dc6;hpb=3c60f40d564ec78f1403eff277095640aed3f01c;p=libc-test diff --git a/src/env/test.h b/src/env/test.h deleted file mode 100644 index a6a7706..0000000 --- a/src/env/test.h +++ /dev/null @@ -1,20 +0,0 @@ -#include -#include -#define error(...) test_error(__FILE__, __LINE__, __VA_ARGS__) - -static int test_status; - -static int test_error(const char *n, int l, const char *s, ...) -{ - va_list ap; - - if (test_status == 0) - printf("FAIL\n"); - test_status = 1; - printf(" ERROR %s:%d: ", n, l); - va_start(ap, s); - vprintf(s, ap); - va_end(ap); - return -1; -} -