X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fdaemonize%2Ftest%2Frun.c;h=73f021118a8c77505136fe25e0b6a3eb9b2eeed8;hp=9bb966da240b722e33dd29f9ea4cfc399f159b5d;hb=HEAD;hpb=ca4485a1cd6ed331aa9a52662a00de81a9209fd6 diff --git a/ccan/daemonize/test/run.c b/ccan/daemonize/test/run.c index 9bb966da..73f02111 100644 --- a/ccan/daemonize/test/run.c +++ b/ccan/daemonize/test/run.c @@ -20,7 +20,7 @@ int main(int argc, char *argv[]) struct child_data daemonized; pid_t pid; - plan_tests(6); + plan_tests(5); if (pipe(fds) != 0) err(1, "Failed pipe"); @@ -64,7 +64,9 @@ int main(int argc, char *argv[]) err(1, "Failed read"); ok1(daemonized.pid != pid); +#if 0 /* Believe it or not, this fails under Ubuntu 13.10 (Upstart) */ ok1(daemonized.ppid == 1); +#endif ok1(daemonized.in_root_dir); ok1(daemonized.read_from_stdin == EBADF); ok1(daemonized.write_to_stdout == EBADF);