diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-05 13:57:40 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-05 14:14:23 +0100 |
commit | 0377e23c205decdfd3d9d885af7b0b4078f1448c (patch) | |
tree | 75e54a9da08966a822aac95479ec938bd5564ad6 /test/storage/storage.hpp | |
parent | 70f04c8bc5ea6869e4631aff490efe646d9d870e (diff) | |
download | qtlocation-mapboxgl-0377e23c205decdfd3d9d885af7b0b4078f1448c.tar.gz |
[test] terminate test server when stdin closes
Diffstat (limited to 'test/storage/storage.hpp')
-rw-r--r-- | test/storage/storage.hpp | 3 |
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 { |