summaryrefslogtreecommitdiff
path: root/test/storage
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-23 02:54:20 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:49:07 +0100
commit6f349a796c718b598acd72d541eea7bcc4649325 (patch)
treefd619e3d49d5eab0cd48ea403b513be811c273aa /test/storage
parent1c91f09fdafdaced5b48ac66390bc9733e50a4c8 (diff)
downloadqtlocation-mapboxgl-6f349a796c718b598acd72d541eea7bcc4649325.tar.gz
execute the correct server path and use the exepath for application root rather than the cwd
Diffstat (limited to 'test/storage')
-rw-r--r--test/storage/storage.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/storage/storage.cpp b/test/storage/storage.cpp
index 5dbd13dcd5..99386a02ce 100644
--- a/test/storage/storage.cpp
+++ b/test/storage/storage.cpp
@@ -1,10 +1,9 @@
#include "storage.hpp"
-#include <mbgl/platform/platform.hpp>
pid_t Storage::pid = 0;
void Storage::SetUpTestCase() {
- const auto server = mbgl::platform::applicationRoot() + "/TEST_DATA/storage/server.js";
+ const auto server = mbgl::test::getBaseDirectory() + "/storage/server.js";
pid = mbgl::test::startServer(server.c_str());
}