From a4277467b95287e19f5410bd028d5b7f9e563033 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 11 Sep 2015 23:23:11 -0600 Subject: fix the runner --- test/runner.c | 6 ++++-- 1 file 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; } -- cgit v1.2.3-54-g00ecf