diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-11 15:36:40 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2016-01-11 15:40:10 +0200 |
commit | 259fe1c81d86a2cf067bda417c349f7d846fa67d (patch) | |
tree | ecf9d45da94ff7b5f7f5f300a2d2b05624ff6b62 /test/fixtures | |
parent | 13fbf8b39b2aa3814b245fdec000048c973d90e4 (diff) | |
download | qtlocation-mapboxgl-259fe1c81d86a2cf067bda417c349f7d846fa67d.tar.gz |
[tests] Fix how we launch the test server
`execl` uses varargs thus must be NULL terminated.
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |