X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Ffunctional%2Fspawn.c;h=4ce9772c16deb8d3e321cd1f99da6f3a7878ba7f;hp=707b1a59b4e449280002ecbb3a5ca5f1eb3f6e8c;hb=cfa23cc1bd01f5c44d7746b8b1839f84d5e1b6eb;hpb=b775d19f7ff58da3fe009d48742068cc92a274f2 diff --git a/src/functional/spawn.c b/src/functional/spawn.c index 707b1a5..4ce9772 100644 --- a/src/functional/spawn.c +++ b/src/functional/spawn.c @@ -12,11 +12,11 @@ #define TEST(f, x) (void)( \ (r = (f)) == (x) || \ - error("%s failed, got %d want %d\n", #f, r, x) ) + t_error("%s failed, got %d want %d\n", #f, r, x) ) #define TEST_E(f) (void)( \ (errno = 0), (f) || \ - error("%s failed (errno = %d \"%s\")\n", #f, errno, strerror(errno)) ) + t_error("%s failed (errno = %d \"%s\")\n", #f, errno, strerror(errno)) ) int main(void) { @@ -38,5 +38,5 @@ int main(void) TEST(read(p[0], foo, sizeof foo), 6); close(p[0]); TEST(posix_spawn_file_actions_destroy(&fa), 0); - return test_status; + return t_status; }