[all-commits] [llvm/llvm-project] 66e85c: [lldb][PlatformDarwin][test] Add unit-test for Loc...
Michael Buch via All-commits
all-commits at lists.llvm.org
Sat Mar 7 03:27:52 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 66e85c275fb587df9ff1ff1d3c26664c32ed5d49
https://github.com/llvm/llvm-project/commit/66e85c275fb587df9ff1ff1d3c26664c32ed5d49
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2026-03-07 (Sat, 07 Mar 2026)
Changed paths:
M lldb/unittests/Platform/CMakeLists.txt
M lldb/unittests/Platform/PlatformDarwinTest.cpp
Log Message:
-----------
[lldb][PlatformDarwin][test] Add unit-test for LocateExecutableScriptingResourcesFromDSYM (#185057)
Depends on:
* https://github.com/llvm/llvm-project/pull/185056
Adds test unit-test for
`PlatformDarwin::LocateExecutableScriptingResourcesFromDSYM`. I had to
mock the `ScriptInterpreter` because the function internally uses the
`ScriptInterpreterPython` to check for reserved words in file names. But
linking the `ScriptInterpreterPython` was quite the undertaking, which I
think we could pull off, but required more churn that I had hoped.
Mocking it seemed pretty low-cost so I resorted to doing that instead.
Test-cases aren't very elaborate yet. It just has a basic assertion that
we locate the Python file within the dSYM. Mostly I set up
infrastructure for future test-cases.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list