llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/thread
Pavel Labath 01a28ca7f8 Centralize libc++ test skipping logic
Summary:
This aims to replace the different decorators we've had on each libc++
test with a single solution. Each libc++ will be assigned to the
"libc++" category and a single central piece of code will decide whether
we are actually able to run libc++ test in the given configuration by
enabling or disabling the category (while giving the user the
opportunity to override this).

I started this effort because I wanted to get libc++ tests running on
android, and none of the existing decorators worked for this use case:
 - skipIfGcc - incorrect, we can build libc++ executables on android
 with gcc (in fact, after this, we can now do it on linux as well)
 - lldbutil.skip_if_library_missing - this checks whether libc++.so is
 loaded in the proces, which fails in case of a statically linked
 libc++ (this makes copying executables to the remote target easier to
 manage).

To make this work I needed to split out the pseudo_barrier code from the
force-included file, as libc++'s atomic does not play well with gcc on
linux, and this made every test fail, even though we need the code only
in the threading tests.

So far, I am only annotating one of the tests with this category. If
this does not break anything, I'll proceed to update the rest.

Reviewers: jingham, zturner, EricWF

Subscribers: srhines, lldb-commits

Differential Revision: https://reviews.llvm.org/D30984

llvm-svn: 299028
2017-03-29 21:01:14 +00:00
..
backtrace_all *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
break_after_join Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
concurrent_events Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
crash_during_step Don't set a software stepping breakpoint at 0 on arm or mips. 2016-10-26 11:13:56 +00:00
create_after_attach *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
create_during_step Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
exit_during_break Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
exit_during_step Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
jump *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
multi_break Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
state Adding radar number on our end for llvm.org/pr15824. 2016-10-10 23:31:36 +00:00
step_out Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
step_until Fix "thread step until" handling of multiple line inputs. 2016-11-18 22:06:10 +00:00
thread_exit Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00
thread_specific_break *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
thread_specific_break_plus_condition *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Makefile Merge ENABLE_THREADS and ENABLE_STD_THREADS markers 2015-12-15 12:11:00 +00:00
TestNumThreads.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
main.cpp