projects
/
ccan
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9dc4707
)
fix up daemon-with-notify test
author
Stewart Smith
<stewart@flamingspork.com>
Fri, 11 Feb 2011 01:00:25 +0000
(12:00 +1100)
committer
Stewart Smith
<stewart@flamingspork.com>
Fri, 11 Feb 2011 01:00:25 +0000
(12:00 +1100)
ccan/daemon-with-notify/test/run.c
patch
|
blob
|
history
diff --git
a/ccan/daemon-with-notify/test/run.c
b/ccan/daemon-with-notify/test/run.c
index 55c0dc5d7ccaee295ceeb3fd7630ecb817fcb2b6..70ccfbbecdcbd9605b1105432a477d8995436a7e 100644
(file)
--- a/
ccan/daemon-with-notify/test/run.c
+++ b/
ccan/daemon-with-notify/test/run.c
@@
-1,4
+1,5
@@
-#include <ccan/daemon-with-notify/daemon.h>
+#include <ccan/daemon-with-notify/daemon-with-notify.h>
+#include <ccan/daemon-with-notify/daemon-with-notify.c>
#include <ccan/tap/tap.h>
#include <stdlib.h>
#include <unistd.h>
#include <ccan/tap/tap.h>
#include <stdlib.h>
#include <unistd.h>
@@
-9,7
+10,7
@@
struct child_data {
pid_t pid;
pid_t ppid;
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;
};
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.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();
ok1(daemonized.write_to_stderr == 0);
return exit_status();