diff --git a/lldb/unittests/Target/LocateModuleCallbackTest.cpp b/lldb/unittests/Target/LocateModuleCallbackTest.cpp --- a/lldb/unittests/Target/LocateModuleCallbackTest.cpp +++ b/lldb/unittests/Target/LocateModuleCallbackTest.cpp @@ -22,6 +22,7 @@ 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; @@ -190,7 +191,8 @@ class LocateModuleCallbackTest : public testing::Test { SubsystemRAII + PlatformAndroid, PlatformLinux, SymbolFileBreakpad, + SymbolFileSymtab> subsystems; public: @@ -202,6 +204,9 @@ 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);