Revert "[lldb][LocateModuleCallback] Fix LocateModuleCallbackTest"
authorShubham Sandeep Rastogi <srastogi22@apple.com>
Fri, 14 Jul 2023 15:03:02 +0000 (11:03 -0400)
committerShubham Sandeep Rastogi <srastogi22@apple.com>
Fri, 14 Jul 2023 15:05:01 +0000 (11:05 -0400)
This reverts commit fb087c17c82309404fe0ebf3505c186642a719f7.

This is because of test failures:

lldb-unit.Target/_/TargetTests/LocateModuleCallbackTest.GetOrCreateModuleWithCachedModule
lldb-unit.Target/_/TargetTests/LocateModuleCallbackTest.GetOrCreateModuleWithCachedModuleAndBreakpadSymbol

lldb/unittests/Target/LocateModuleCallbackTest.cpp

index 42a0790..cd5eb44 100644 (file)
@@ -22,7 +22,6 @@
 using namespace lldb;
 using namespace lldb_private;
 using namespace lldb_private::platform_android;
-using namespace lldb_private::platform_linux;
 using namespace lldb_private::breakpad;
 using namespace testing;
 
@@ -191,8 +190,7 @@ ProcessSP MockProcessCreateInstance(TargetSP target_sp, ListenerSP listener_sp,
 
 class LocateModuleCallbackTest : public testing::Test {
   SubsystemRAII<FileSystem, HostInfo, ObjectFileBreakpad, ObjectFileELF,
-                PlatformAndroid, PlatformLinux, SymbolFileBreakpad,
-                SymbolFileSymtab>
+                PlatformAndroid, SymbolFileBreakpad, SymbolFileSymtab>
       subsystems;
 
 public:
@@ -204,9 +202,6 @@ public:
         m_test_dir);
 
     // Create Debugger.
-    ArchSpec host_arch("i386-pc-linux");
-    Platform::SetHostPlatform(
-        platform_linux::PlatformLinux::CreateInstance(true, &host_arch));
     m_debugger_sp = Debugger::CreateInstance();
     EXPECT_TRUE(m_debugger_sp);