execute the correct server path and use the exepath for application root rather than the cwd

This commit is contained in:
Konstantin Käfer
2015-01-23 02:54:20 -08:00
committed by Konstantin Käfer
parent 1c91f09fda
commit 6f349a796c
3 changed files with 18 additions and 6 deletions

View File

@@ -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());
}