[Lldb-commits] [lldb] r348261 - Fix lldb-server unit tests for the MonitoringProcessLauncher refactor

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 4 06:04:27 PST 2018


Author: labath
Date: Tue Dec  4 06:04:27 2018
New Revision: 348261

URL: http://llvm.org/viewvc/llvm-project?rev=348261&view=rev
Log:
Fix lldb-server unit tests for the MonitoringProcessLauncher refactor

We now need to initialize the filesystem in these tests.

Modified:
    lldb/trunk/unittests/tools/lldb-server/tests/TestBase.h

Modified: lldb/trunk/unittests/tools/lldb-server/tests/TestBase.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/tools/lldb-server/tests/TestBase.h?rev=348261&r1=348260&r2=348261&view=diff
==============================================================================
--- lldb/trunk/unittests/tools/lldb-server/tests/TestBase.h (original)
+++ lldb/trunk/unittests/tools/lldb-server/tests/TestBase.h Tue Dec  4 06:04:27 2018
@@ -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);




More information about the lldb-commits mailing list