X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Ffcntl.c;h=485c00cf93d7ac1c83ec1c28752a564eedfabef1;hb=ff1a08c16ea49fa2bd3260a3b327b5dcaa5d13a6;hp=83ea950ba7f04b43f1ec47ffc5d0e798abd3e3c3;hpb=0c5fb5124c162a631c247ed63c3a995df2914ff8;p=libc-test diff --git a/src/functional/fcntl.c b/src/functional/fcntl.c index 83ea950..485c00c 100644 --- a/src/functional/fcntl.c +++ b/src/functional/fcntl.c @@ -6,8 +6,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) { @@ -17,7 +17,7 @@ int main(void) pid_t pid; int status; - if (!TESTE(f=tmpfile())) return test_status; + if (!TESTE(f=tmpfile())) return t_status; fd = fileno(f); fl.l_type = F_WRLCK; @@ -45,5 +45,5 @@ int main(void) fclose(f); - return test_status; + return t_status; }