]> git.ozlabs.org Git - ccan/blobdiff - ccan/tap/test/run.c
tap: spelling fix
[ccan] / ccan / tap / test / run.c
index c119e74fd4099726a900e741199d38b7e760fb9f..37f26ae0277a418365cd46e6dc5c7d04759c59b6 100644 (file)
@@ -66,8 +66,8 @@ int main(int argc, char *argv[])
        int p[2];
        int stdoutfd;
 
+       setbuf(stdout, 0);
        printf("1..1\n");
-       fflush(stdout);
        stderrfd = dup(STDERR_FILENO);
        if (stderrfd < 0)
                err(1, "dup of stderr failed");
@@ -129,5 +129,5 @@ int main(int argc, char *argv[])
 
        write_all(stdoutfd, "ok 1 - All passed\n",
                  strlen("ok 1 - All passed\n"));
-       _exit(0);
+       exit(0);
 }