summaryrefslogtreecommitdiff
path: root/test/storage/storage.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-05 13:57:40 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-05 14:14:23 +0100
commit0377e23c205decdfd3d9d885af7b0b4078f1448c (patch)
tree75e54a9da08966a822aac95479ec938bd5564ad6 /test/storage/storage.hpp
parent70f04c8bc5ea6869e4631aff490efe646d9d870e (diff)
downloadqtlocation-mapboxgl-0377e23c205decdfd3d9d885af7b0b4078f1448c.tar.gz
[test] terminate test server when stdin closes
Diffstat (limited to 'test/storage/storage.hpp')
-rw-r--r--test/storage/storage.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/storage/storage.hpp b/test/storage/storage.hpp
index 34fa69fbf9..dc304e6b6f 100644
--- a/test/storage/storage.hpp
+++ b/test/storage/storage.hpp
@@ -4,6 +4,7 @@
#include "../fixtures/util.hpp"
#include <mbgl/storage/response.hpp>
#include <iostream>
+#include <memory>
class Storage : public testing::Test {
public:
@@ -11,7 +12,7 @@ public:
static void TearDownTestCase();
protected:
- static pid_t pid;
+ static std::unique_ptr<mbgl::test::Server> server;
};
namespace mbgl {