From f24532ae91d540bcc2a6a5f29f89c8ea42907ef3 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Mon, 18 Oct 2021 16:52:15 -0700 Subject: [PATCH] Follow-on to fix a test from c5011aed9c297d6ddd8ee4f77453b215aa27554a. I need to set a fake default platform for the UnitTest test to run on other systems. --- lldb/unittests/Interpreter/TestCommandPaths.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lldb/unittests/Interpreter/TestCommandPaths.cpp b/lldb/unittests/Interpreter/TestCommandPaths.cpp index 2a654d7f..13bb4e5 100644 --- a/lldb/unittests/Interpreter/TestCommandPaths.cpp +++ b/lldb/unittests/Interpreter/TestCommandPaths.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "Plugins/Platform/MacOSX/PlatformMacOSX.h" +#include "Plugins/Platform/MacOSX/PlatformRemoteMacOSX.h" #include "lldb/Core/Debugger.h" #include "lldb/Host/FileSystem.h" #include "lldb/Host/HostInfo.h" @@ -104,6 +105,10 @@ void RunTest(CommandInterpreter &interp, const char *args, bool is_leaf, } TEST_F(VerifyUserMultiwordCmdPathTest, TestErrors) { + ArchSpec arch("x86_64-apple-macosx-"); + + Platform::SetHostPlatform(PlatformRemoteMacOSX::CreateInstance(true, &arch)); + DebuggerSP debugger_sp = Debugger::CreateInstance(); ASSERT_TRUE(debugger_sp); -- 2.7.4