Don't pollute users local state dir when running test cases

This commit is contained in:
Sebastian Messmer 2017-09-30 09:18:46 +01:00
parent e5d6875523
commit be9f7a4c3d

View File

@ -12,8 +12,9 @@
#include <cpp-utils/process/subprocess.h> #include <cpp-utils/process/subprocess.h>
#include <cpp-utils/network/FakeHttpClient.h> #include <cpp-utils/network/FakeHttpClient.h>
#include "../../cryfs/testutils/MockConsole.h" #include "../../cryfs/testutils/MockConsole.h"
#include "../../cryfs/testutils/TestWithFakeHomeDirectory.h"
class CliTest : public ::testing::Test { class CliTest : public ::testing::Test, TestWithFakeHomeDirectory {
public: public:
CliTest(): _basedir(), _mountdir(), basedir(_basedir.path()), mountdir(_mountdir.path()), logfile(), configfile(false), console(std::make_shared<MockConsole>()) {} CliTest(): _basedir(), _mountdir(), basedir(_basedir.path()), mountdir(_mountdir.path()), logfile(), configfile(false), console(std::make_shared<MockConsole>()) {}