diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-11 23:23:11 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-11 23:24:48 -0600 |
commit | a4277467b95287e19f5410bd028d5b7f9e563033 (patch) | |
tree | c2541c1164c52abf8c9a14f75e28c1a1d129374c /test/runner.c | |
parent | da8d8e0b23fb8585063a93d093e843c69cd3f07b (diff) |
fix the runner
Diffstat (limited to 'test/runner.c')
-rw-r--r-- | test/runner.c | 6 |
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; } |