teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/thread/concurrent_events
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
..
breakpoint_delay_breakpoint_one_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
breakpoint_one_delay_breakpoint_threads Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
breakpoints_delayed_breakpoint_one_watchpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
crash_with_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
crash_with_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
crash_with_watchpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
crash_with_watchpoint_breakpoint_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
delay_signal_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
delay_signal_watch Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
delay_watch_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
delayed_crash_with_breakpoint_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
delayed_crash_with_breakpoint_watchpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
many_breakpoints Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
many_crash Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
many_signals Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
many_watchpoints Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
n_watch_n_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_delay_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_delay_watch Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_n_watch_n_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_watch Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
signal_watch_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_breakpoint_threads Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_breakpoints_one_delay_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_breakpoints_one_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_breakpoints_one_watchpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_watchpoint_threads Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_watchpoints_one_breakpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_watchpoints_one_delay_breakpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
two_watchpoints_one_signal Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
watch_break Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
watch_break_delay Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
watchpoint_delay_watchpoint_one_breakpoint Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
watchpoint_with_delay_watchpoint_threads Use shorter names in TestConcurrentEvents tests 2016-10-24 16:20:43 +00:00
main.cpp Centralize libc++ test skipping logic 2017-03-29 21:01:14 +00:00