From a2d0859bf1a27be2d6d0465ec75d53c03a01cd98 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 6 Nov 2022 12:47:24 +0100 Subject: [PATCH] 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 --- test/common/serv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/common/serv.c b/test/common/serv.c index b4f2a54b..6329f2a5 100644 --- a/test/common/serv.c +++ b/test/common/serv.c @@ -207,8 +207,10 @@ int main(int argc, char *argv[]) do_notify = atoi(sock); } - if (do_crash) + if (do_crash) { + log("Simulating crash, exiting with code %d", EX_SOFTWARE); exit(EX_SOFTWARE); + } log("Entering while(1) loop"); while (running) {