From 3fbdde3172c96ffdfafbaa59ce264d02874b170e Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 4 Dec 2018 14:04:27 +0000 Subject: [PATCH] Fix lldb-server unit tests for the MonitoringProcessLauncher refactor We now need to initialize the filesystem in these tests. llvm-svn: 348261 --- lldb/unittests/tools/lldb-server/tests/TestBase.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lldb/unittests/tools/lldb-server/tests/TestBase.h b/lldb/unittests/tools/lldb-server/tests/TestBase.h index 8956490..7ca1c1a 100644 --- a/lldb/unittests/tools/lldb-server/tests/TestBase.h +++ b/lldb/unittests/tools/lldb-server/tests/TestBase.h @@ -11,6 +11,7 @@ #define LLDB_SERVER_TESTS_TESTBASE_H #include "TestClient.h" +#include "lldb/Host/FileSystem.h" #include "lldb/Host/HostInfo.h" #include "llvm/Support/Path.h" #include "llvm/Testing/Support/Error.h" @@ -20,7 +21,10 @@ namespace llgs_tests { class TestBase: public ::testing::Test { public: - static void SetUpTestCase() { lldb_private::HostInfo::Initialize(); } + static void SetUpTestCase() { + lldb_private::FileSystem::Initialize(); + lldb_private::HostInfo::Initialize(); + } static std::string getInferiorPath(llvm::StringRef Name) { llvm::SmallString<64> Path(LLDB_TEST_INFERIOR_PATH); -- 2.7.4