diff options
| author | Michał Górny <mgorny@moritz.systems> | 2021-02-22 23:39:39 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@moritz.systems> | 2021-03-01 16:23:36 +0100 |
| commit | 15f067f1c79fac34910eaf50f612854eb1d58bb5 (patch) | |
| tree | 05db7469bbb600244589113b25a56b307f99a8f7 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | c41372c8a1db8fa0bfda25daeca1f5f4f5145439 (diff) | |
[lldb] [test] Workaround symlink-related test failures
Use realpath() when spawning the executable create_after_attach
to workaround a FreeBSD plugin (and possibly others) problem.
If the executable is started via a path containing a symlink, it is
added to the module list twice -- via the real and apparent path.
This in turn cases the requested breakpoint to resolve twice.
Use realpath() for main program path in lldb-vscode breakpoint tests
to workaround a similar problem. If the passed path does not match
the realpath, lldb-vscode does not report the breakpoints as verified
and causes tests to fail.
Since the underlying problems are non-trivial to fix and the purpose
of these tests is not to reproduce symlink problems, let's apply
trivial workarounds to make them pass.
Differential Revision: https://reviews.llvm.org/D97230
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
