[tests] Fix how we launch the test server
`execl` uses varargs thus must be NULL terminated.
This commit is contained in:
4
test/fixtures/util.cpp
vendored
4
test/fixtures/util.cpp
vendored
@@ -59,8 +59,8 @@ Server::Server(const char* executable) {
|
||||
close(output[1]);
|
||||
close(output[0]);
|
||||
|
||||
// Launch the actual server process, with the pipe ID as the first argument.
|
||||
int ret = execl(executable, executable);
|
||||
// Launch the actual server process.
|
||||
int ret = execl(executable, executable, nullptr);
|
||||
|
||||
// This call should not return. In case execl failed, we exit anyway.
|
||||
if (ret < 0) {
|
||||
|
||||
Reference in New Issue
Block a user