mirror of
https://github.com/troglobit/finit.git
synced 2026-10-27 12:20:54 +00:00
test: serv: die immediately (no sleep) if started with -c
We want to stress test Finit as much as possible. We add a small log though (which admittedly gives us a little bit of a delay) just to see what happens when debugging failing tests. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
d5f542dcca
commit
a2d0859bf1
1 file changed
+3
-1
+3
-1
@@ -207,8 +207,10 @@ int main(int argc, char *argv[])
|
|||||||
do_notify = atoi(sock);
|
do_notify = atoi(sock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (do_crash)
|
if (do_crash) {
|
||||||
|
log("Simulating crash, exiting with code %d", EX_SOFTWARE);
|
||||||
exit(EX_SOFTWARE);
|
exit(EX_SOFTWARE);
|
||||||
|
}
|
||||||
|
|
||||||
log("Entering while(1) loop");
|
log("Entering while(1) loop");
|
||||||
while (running) {
|
while (running) {
|
||||||
|
|||||||
Reference in new issue
Block a user