llvm-capstone/lldb
Raphael Isemann 30d5590d17 [lldb] Fix TestTargetAPI.py on Apple simulators
This test checks that the output of `SBTarget.GetDescription()` contains the
substrings `'a.out', 'Target', 'Module', 'Breakpoint'` in that order. This test
is currently failing on Apple simulators as apparently 'Module' can't be found
in the output after 'Target".

The reason for that is that the actual output of `SBTarget.GetDescription()` looks like this:
```
Target
  Module /build/path/lldb-test-build.noindex/python_api/target/TestTargetAPI.test_get_description_dwarf/a.out
0x7ff2b6d3f990:     ObjectFileMachO64, file = /build/path/lldb-test-build.noindex/python_api/target/TestTargetAPI.test_get_description
[...]
0x7ff307150000:   BreakpointList with 0 Breakpoints:
<LLDB module output repeats for each loaded module>
```

Clearly the string order should be `'Target', 'Module', 'a.out', 'Breakpoint'`.
However, LLDB is also a bunch of system shared libraries (libxpc.dylib,
libobjc.A.dylib, etc.) when *not* running against a simulator, we end up
unintentionally finding the `'Target', 'Module', 'Breakpoint'` substrings in the
trailing descriptions of the system modules. When running against a simulator we
however don't load shared system libraries.

This patch just moves the substrings in the correct order to make this test pass
without having any shared library modules in the description output.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D89698
2020-10-22 16:41:54 +02:00
..
bindings Add an SB API to get the SBTarget from an SBBreakpoint 2020-10-15 14:28:44 -07:00
cmake Fix "Unknown arguments specified" to if in lldb 2020-10-21 07:24:53 -07:00
docs [lldb] Add a page to the docs with (external) links on how to use LLDB 2020-10-20 11:43:31 -07:00
examples [lldb/examples] Add missing declaration in heap.py 2020-09-24 08:44:45 -07:00
include/lldb [lldb][NFC] Make GetShellSafeArgument return std::string and unittest it. 2020-10-22 14:47:10 +02:00
packages/Python [lldb] Explicitly use the configuration architecture when building test executables 2020-10-22 15:30:25 +02:00
resources
scripts [LLDB] Add QEMU testing environment setup guide for SVE testing 2020-10-06 12:35:08 +05:00
source [lldb][NFC] Make GetShellSafeArgument return std::string and unittest it. 2020-10-22 14:47:10 +02:00
test [lldb] Fix TestTargetAPI.py on Apple simulators 2020-10-22 16:41:54 +02:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [lldb] Fix windows build for fa5fa63fd1 2020-10-21 17:51:11 +02:00
unittests [lldb][NFC] Make GetShellSafeArgument return std::string and unittest it. 2020-10-22 14:47:10 +02:00
utils [lldb] Hoist -s (trace directory) argument out of LLDB_TEST_COMMON_ARGS (NFC) 2020-09-29 17:23:33 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt [lldb] Enable cmake policy CMP0077 for option() 2020-10-17 00:16:24 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py