diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-01-23 11:04:26 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-04 10:49:06 +0100 |
commit | 4a985e09f2addcc9cb86f435b5a87517d20ec483 (patch) | |
tree | 9a004e7a29b90ebd9d470007946bddfdee3470ec /test/headless | |
parent | 9a549094e02b046eb67a3c3a1ed8df96791825ca (diff) | |
download | qtlocation-mapboxgl-4a985e09f2addcc9cb86f435b5a87517d20ec483.tar.gz |
asset:// URLs are local to the executable path now
Diffstat (limited to 'test/headless')
-rw-r--r-- | test/headless/headless.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/headless/headless.cpp b/test/headless/headless.cpp index cd976be27d..9f19c2c566 100644 --- a/test/headless/headless.cpp +++ b/test/headless/headless.cpp @@ -4,6 +4,7 @@ #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> @@ -29,7 +30,7 @@ void rewriteLocalScheme(rapidjson::Value &value, rapidjson::Document::AllocatorT class HeadlessTest : public ::testing::TestWithParam<std::string> { public: static void SetUpTestCase() { - const auto server = mbgl::test::getBaseDirectory() + "/headless/server.js"; + const auto server = mbgl::platform::applicationRoot() + "/TEST_DATA/headless/server.js"; pid = mbgl::test::startServer(server.c_str()); display = std::make_shared<mbgl::HeadlessDisplay>(); } |