flockfile list corruption test
[libc-test] / src / functional / fcntl.c
index 83ea950..485c00c 100644 (file)
@@ -6,8 +6,8 @@
 #include <sys/wait.h>
 #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;
 }