teak-llvm/lldb/packages/Python/lldbsuite/test/python_api
Pavel Labath 539b7e65b4 Make TestPrintStackTraces deterministic
This test contained an incredibly complicated inferior, but in reality,
all it was testing was that we can backtrace up to main and see main's
arguments.

However, the way this was implemented (setting a breakpoint on a
separate thread) meant that each time the test would run, it would stop
in a different location on the main thread. Most of the time this
location would be deep in some libc function, which meant that the
success of this test depended on our ability to backtrace out of a
random function of the c library that the user happens to have
installed.

This makes the test unpredictable. Backtracing out of a libc function is
an important functionality, but this is not the way to test it. Often it
is not even our fault that we cannot backtrace out because the C library
contains a lot of assembly routines that may not have correct unwind
info associated with them.

For this reason the test has accumulated numerous @expectedFail/Flaky
decorators. In this patch, I replace the inferior with one that does not
depend on libc functions. Instead I create a couple of stack frames of
user code, and have the test verify that. I also simplify the test by
using lldbutil.run_to_source_breakpoint.

llvm-svn: 358266
2019-04-12 08:02:28 +00:00
..
breakpoint Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
class_members Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
debugger modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
default-constructor modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
disassemble-raw-data Add and fix some tests for PPC64 2018-03-26 12:42:07 +00:00
event [lldb] [test] Mark more tests flakey on NetBSD 2019-03-11 17:01:31 +00:00
exprpath_synthetic [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
file_handle Revert r317182 for https://reviews.llvm.org/D39128 2017-11-02 03:17:07 +00:00
findvalue_duplist Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
formatters Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
frame Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
function_symbol Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
hello_world [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
interpreter Wrap all references to build artifacts in the LLDB testsuite (NFC) 2018-01-19 23:24:35 +00:00
lldbutil Make TestPrintStackTraces deterministic 2019-04-12 08:02:28 +00:00
module_section modify-python-lldb.py: (Re)move __len__ and __iter__ support 2019-04-04 10:13:59 +00:00
name_lookup Remove header grouping comments. 2018-11-11 23:17:06 +00:00
objc_type Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
process Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
rdar-12481949 Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
sbdata [testsuite] Remove other traces broken in python 3. 2019-03-13 02:44:32 +00:00
sblaunchinfo Add Utility/Environment class for handling... environments 2018-01-10 11:57:31 +00:00
sbstructureddata
sbtype_typeclass [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
sbvalue_const_addrof
sbvalue_persist Remove header grouping comments. 2018-11-11 23:17:06 +00:00
section Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
signals Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
symbol-context modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
target Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
thread [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
type Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
value Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
value_var_update Build each testcase variant in its own subdirectory and remove the srcdir lock file 2018-02-06 18:22:51 +00:00
watchpoint [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
.categories