diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-01-23 02:54:20 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-04 10:49:07 +0100 |
commit | 6f349a796c718b598acd72d541eea7bcc4649325 (patch) | |
tree | fd619e3d49d5eab0cd48ea403b513be811c273aa /test/headless/headless.cpp | |
parent | 1c91f09fdafdaced5b48ac66390bc9733e50a4c8 (diff) | |
download | qtlocation-mapboxgl-6f349a796c718b598acd72d541eea7bcc4649325.tar.gz |
execute the correct server path and use the exepath for application root rather than the cwd
Diffstat (limited to 'test/headless/headless.cpp')
-rw-r--r-- | test/headless/headless.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp index 9f19c2c566..cd976be27d 100644 --- a/test/headless/headless.cpp +++ b/test/headless/headless.cpp @@ -4,7 +4,6 @@ #include <mbgl/map/map.hpp> #include <mbgl/util/image.hpp> #include <mbgl/util/std.hpp> -#include <mbgl/platform/platform.hpp> #include <mbgl/util/io.hpp> #include <rapidjson/document.h> @@ -30,7 +29,7 @@ void rewriteLocalScheme(rapidjson::Value &value, rapidjson::Document::AllocatorT class HeadlessTest : public ::testing::TestWithParam<std::string> { public: static void SetUpTestCase() { - const auto server = mbgl::platform::applicationRoot() + "/TEST_DATA/headless/server.js"; + const auto server = mbgl::test::getBaseDirectory() + "/headless/server.js"; pid = mbgl::test::startServer(server.c_str()); display = std::make_shared<mbgl::HeadlessDisplay>(); } |