summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/runner.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/runner.c b/test/runner.c
index 82b8d6e..a1d7181 100644
--- a/test/runner.c
+++ b/test/runner.c
@@ -118,6 +118,7 @@ int main(int argc, char *argv[]) {
pid = getpid();
setenv("LISTEN_PID", xasprintfa("%ld", (long)pid), 1);
setenv("LISTEN_FDS", "1", 1);
+ setenv("NOTIFY_SOCKET", notify_sockname, 1);
execl(argv[1], argv[1], NULL);
error(EXIT_FAILURE, errno, "execl");
}
@@ -140,7 +141,8 @@ int main(int argc, char *argv[]) {
}
if (bytes_written < 0)
error(EXIT_FAILURE, errno, "write");
+ write(2, "\n", 1);
}
-
- return 0;
+ error(EXIT_FAILURE, 0, "not reached");
+ return EXIT_FAILURE;
}