From: Stewart Smith Date: Fri, 11 Feb 2011 01:00:25 +0000 (+1100) Subject: fix up daemon-with-notify test X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=bd12721599802b1a91513ae56c0ab002890c60b0;hp=9dc47071c09801f26262405fed627b019328c967;ds=sidebyside fix up daemon-with-notify test --- diff --git a/ccan/daemon-with-notify/test/run.c b/ccan/daemon-with-notify/test/run.c index 55c0dc5d..70ccfbbe 100644 --- a/ccan/daemon-with-notify/test/run.c +++ b/ccan/daemon-with-notify/test/run.c @@ -1,4 +1,5 @@ -#include +#include +#include #include #include #include @@ -9,7 +10,7 @@ struct child_data { pid_t pid; pid_t ppid; - bool in_root_dir; + int in_root_dir; int read_from_stdin, write_to_stdout, write_to_stderr; }; @@ -66,8 +67,8 @@ int main(int argc, char *argv[]) ok1(daemonized.pid != pid); ok1(daemonized.ppid == 1); ok1(daemonized.in_root_dir); - ok1(daemonized.read_from_stdin == EBADF); - ok1(daemonized.write_to_stdout == EBADF); + ok1(daemonized.read_from_stdin == 0); + ok1(daemonized.write_to_stdout == 0); ok1(daemonized.write_to_stderr == 0); return exit_status();