Author: Jim Ingham Date: 2021-10-18T16:53:32-07:00 New Revision: f24532ae91d540bcc2a6a5f29f89c8ea42907ef3
URL: https://github.com/llvm/llvm-project/commit/f24532ae91d540bcc2a6a5f29f89c8ea42907ef3 DIFF: https://github.com/llvm/llvm-project/commit/f24532ae91d540bcc2a6a5f29f89c8ea42907ef3.diff LOG: 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. Added: Modified: lldb/unittests/Interpreter/TestCommandPaths.cpp Removed: ################################################################################ diff --git a/lldb/unittests/Interpreter/TestCommandPaths.cpp b/lldb/unittests/Interpreter/TestCommandPaths.cpp index 2a654d7fe704..13bb4e54b5ba 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); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits