#include <sys/wait.h>
#include "test.h"
-#define TEST(c, ...) ((c) ? 1 : (error(#c" failed: " __VA_ARGS__),0))
+#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)
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;
fclose(f);
- return test_status;
+ return t_status;
}