From 259fe1c81d86a2cf067bda417c349f7d846fa67d Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 11 Jan 2016 15:36:40 +0200 Subject: [tests] Fix how we launch the test server `execl` uses varargs thus must be NULL terminated. --- test/fixtures/util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fixtures') diff --git a/test/fixtures/util.cpp b/test/fixtures/util.cpp index 5eeb428ec7..9e929a90b4 100644 --- a/test/fixtures/util.cpp +++ b/test/fixtures/util.cpp @@ -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) { -- cgit v1.2.1