summaryrefslogtreecommitdiff
path: root/test/headless/headless.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-23 11:04:26 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:06 +0100
commit4a985e09f2addcc9cb86f435b5a87517d20ec483 (patch)
tree9a004e7a29b90ebd9d470007946bddfdee3470ec /test/headless/headless.cpp
parent9a549094e02b046eb67a3c3a1ed8df96791825ca (diff)
downloadqtlocation-mapboxgl-4a985e09f2addcc9cb86f435b5a87517d20ec483.tar.gz
asset:// URLs are local to the executable path now
Diffstat (limited to 'test/headless/headless.cpp')
-rw-r--r--test/headless/headless.cpp3
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>();
}