X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Fsocket.c;h=b62cf988f6ce354eeb64d799c2055978b4ff3995;hb=54c15bc45a8721b8482552586a50b2548271a3b4;hp=fc01e67ca6ce0e2ae94a120a5cce3ce56477a3cf;hpb=0c5fb5124c162a631c247ed63c3a995df2914ff8;p=libc-test diff --git a/src/functional/socket.c b/src/functional/socket.c index fc01e67..b62cf98 100644 --- a/src/functional/socket.c +++ b/src/functional/socket.c @@ -8,8 +8,8 @@ #include #include "test.h" -#define TEST(c, ...) ((c) ? 1 : (error(#c" failed: " __VA_ARGS__),0)) -#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno)) +#define TEST(c, ...) ((c) ? 1 : (t_error(#c" failed: " __VA_ARGS__),0)) +#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno))) int main(void) { @@ -54,5 +54,5 @@ int main(void) close(c); close(s); - return test_status; + return t_status; }