summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/thread
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/thread')
-rw-r--r--lldb/test/functionalities/thread/TestNumThreads.py16
-rw-r--r--lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py24
-rw-r--r--lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py175
-rw-r--r--lldb/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py21
-rw-r--r--lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py17
-rw-r--r--lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py57
-rw-r--r--lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py25
-rw-r--r--lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py73
-rw-r--r--lldb/test/functionalities/thread/jump/TestThreadJump.py32
-rw-r--r--lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py25
-rw-r--r--lldb/test/functionalities/thread/state/TestThreadStates.py65
-rw-r--r--lldb/test/functionalities/thread/step_out/TestThreadStepOut.py33
-rw-r--r--lldb/test/functionalities/thread/thread_exit/TestThreadExit.py20
-rw-r--r--lldb/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py17
14 files changed, 152 insertions, 448 deletions
diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py
index a7d015048a5..65ca699332f 100644
--- a/lldb/test/functionalities/thread/TestNumThreads.py
+++ b/lldb/test/functionalities/thread/TestNumThreads.py
@@ -12,27 +12,15 @@ class NumberOfThreadsTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_with_dsym(self):
- """Test number of threads."""
- self.buildDsym()
- self.number_of_threads_test()
-
- @dwarf_test
- def test_with_dwarf(self):
- """Test number of threads."""
- self.buildDwarf()
- self.number_of_threads_test()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number to break inside main().
self.line = line_number('main.cpp', '// Set break point at this line.')
- def number_of_threads_test(self):
+ def test(self):
"""Test number of threads."""
+ self.build()
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
index f1f18024166..e149f361ea0 100644
--- a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
+++ b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
@@ -12,31 +12,19 @@ class BreakpointAfterJoinTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_with_dsym(self):
- """Test breakpoint handling after a thread join."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.breakpoint_after_join_test()
-
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
- @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
- @dwarf_test
- def test_with_dwarf(self):
- """Test breakpoint handling after a thread join."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.breakpoint_after_join_test()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number for our breakpoint.
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
- def breakpoint_after_join_test(self):
+ @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
+ @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
+ @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
+ def test(self):
"""Test breakpoint handling after a thread join."""
+ self.build(dictionary=self.getBuildFlags())
+
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
index ae073f08fe2..149d6a22bc8 100644
--- a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
+++ b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
@@ -25,170 +25,150 @@ class ConcurrentEventsTestCase(TestBase):
## Tests for multiple threads that generate a single event.
#
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @dwarf_test
- def test_many_breakpoints_dwarf(self):
+ def test_many_breakpoints(self):
"""Test 100 breakpoints from 100 threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @dwarf_test
- def test_many_watchpoints_dwarf(self):
+ def test_many_watchpoints(self):
"""Test 100 watchpoints from 100 threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @dwarf_test
- def test_many_signals_dwarf(self):
+ def test_many_signals(self):
"""Test 100 signals from 100 threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=100)
@unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
- @dwarf_test
- def test_many_crash_dwarf(self):
+ def test_many_crash(self):
"""Test 100 threads that cause a segfault."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=100)
#
## Tests for concurrent signal and breakpoint
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_signal_break_dwarf(self):
+ def test_signal_break(self):
"""Test signal and a breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_delay_signal_break_dwarf(self):
+ def test_delay_signal_break(self):
"""Test (1-second delay) signal and a breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_delay_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_signal_delay_break_dwarf(self):
+ def test_signal_delay_break(self):
"""Test signal and a (1 second delay) breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_delay_breakpoint_threads=1, num_signal_threads=1)
#
## Tests for concurrent watchpoint and breakpoint
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_watch_break_dwarf(self):
+ def test_watch_break(self):
"""Test watchpoint and a breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_delay_watch_break_dwarf(self):
+ def test_delay_watch_break(self):
"""Test (1-second delay) watchpoint and a breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1, num_delay_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_watch_break_dwarf_delay(self):
+ def test_watch_break_delay(self):
"""Test watchpoint and a (1 second delay) breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_delay_breakpoint_threads=1, num_watchpoint_threads=1)
#
## Tests for concurrent signal and watchpoint
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_signal_watch_dwarf(self):
+ def test_signal_watch(self):
"""Test a watchpoint and a signal in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=1, num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_delay_signal_watch_dwarf(self):
+ def test_delay_signal_watch(self):
"""Test a watchpoint and a (1 second delay) signal in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_delay_signal_threads=1, num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
@expectedFailureAll("llvm.org/pr16714", oslist=["linux"], archs=["i386"])
- def test_signal_delay_watch_dwarf(self):
+ def test_signal_delay_watch(self):
"""Test a (1 second delay) watchpoint and a signal in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=1, num_delay_watchpoint_threads=1)
#
## Tests for multiple breakpoint threads
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_two_breakpoint_threads_dwarf(self):
+ def test_two_breakpoint_threads(self):
"""Test two threads that trigger a breakpoint. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_breakpoint_one_delay_breakpoint_threads_dwarf(self):
+ def test_breakpoint_one_delay_breakpoint_threads(self):
"""Test threads that trigger a breakpoint where one thread has a 1 second delay. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1,
num_delay_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_two_breakpoints_one_signal_dwarf(self):
+ def test_two_breakpoints_one_signal(self):
"""Test two threads that trigger a breakpoint and one signal thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2, num_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_breakpoint_delay_breakpoint_one_signal_dwarf(self):
+ def test_breakpoint_delay_breakpoint_one_signal(self):
"""Test two threads that trigger a breakpoint (one with a 1 second delay) and one signal thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1,
num_delay_breakpoint_threads=1,
num_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_two_breakpoints_one_delay_signal_dwarf(self):
+ def test_two_breakpoints_one_delay_signal(self):
"""Test two threads that trigger a breakpoint and one (1 second delay) signal thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2, num_delay_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_two_breakpoints_one_watchpoint_dwarf(self):
+ def test_two_breakpoints_one_watchpoint(self):
"""Test two threads that trigger a breakpoint and one watchpoint thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=2, num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_breakpoints_delayed_breakpoint_one_watchpoint_dwarf(self):
+ def test_breakpoints_delayed_breakpoint_one_watchpoint(self):
"""Test a breakpoint, a delayed breakpoint, and one watchpoint thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_breakpoint_threads=1,
num_delay_breakpoint_threads=1,
num_watchpoint_threads=1)
@@ -196,86 +176,77 @@ class ConcurrentEventsTestCase(TestBase):
#
## Tests for multiple watchpoint threads
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_two_watchpoint_threads_dwarf(self):
+ def test_two_watchpoint_threads(self):
"""Test two threads that trigger a watchpoint. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=2)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_watchpoint_with_delay_watchpoint_threads_dwarf(self):
+ def test_watchpoint_with_delay_watchpoint_threads(self):
"""Test two threads that trigger a watchpoint where one thread has a 1 second delay. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=1,
num_delay_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_two_watchpoints_one_breakpoint_dwarf(self):
+ def test_two_watchpoints_one_breakpoint(self):
"""Test two threads that trigger a watchpoint and one breakpoint thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=2, num_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_two_watchpoints_one_delay_breakpoint_dwarf(self):
+ def test_two_watchpoints_one_delay_breakpoint(self):
"""Test two threads that trigger a watchpoint and one (1 second delay) breakpoint thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=2, num_delay_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_watchpoint_delay_watchpoint_one_breakpoint_dwarf(self):
+ def test_watchpoint_delay_watchpoint_one_breakpoint(self):
"""Test two threads that trigger a watchpoint (one with a 1 second delay) and one breakpoint thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=1,
num_delay_watchpoint_threads=1,
num_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_two_watchpoints_one_signal_dwarf(self):
+ def test_two_watchpoints_one_signal(self):
"""Test two threads that trigger a watchpoint and one signal thread. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=2, num_signal_threads=1)
#
## Test for watchpoint, signal and breakpoint happening concurrently
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_signal_watch_break_dwarf(self):
+ def test_signal_watch_break(self):
"""Test a signal/watchpoint/breakpoint in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=1,
num_watchpoint_threads=1,
num_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_signal_watch_break_dwarf(self):
+ def test_signal_watch_break(self):
"""Test one signal thread with 5 watchpoint and breakpoint threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_signal_threads=1,
num_watchpoint_threads=5,
num_breakpoint_threads=5)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_signal_watch_break_dwarf(self):
+ def test_signal_watch_break(self):
"""Test with 5 watchpoint and breakpoint threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_watchpoint_threads=5,
num_breakpoint_threads=5)
@@ -283,54 +254,48 @@ class ConcurrentEventsTestCase(TestBase):
#
## Test for crashing threads happening concurrently with other events
#
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_crash_with_break_dwarf(self):
+ def test_crash_with_break(self):
""" Test a thread that crashes while another thread hits a breakpoint."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=1, num_breakpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_crash_with_watchpoint_dwarf(self):
+ def test_crash_with_watchpoint(self):
""" Test a thread that crashes while another thread hits a watchpoint."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=1, num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_crash_with_signal_dwarf(self):
+ def test_crash_with_signal(self):
""" Test a thread that crashes while another thread generates a signal."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=1, num_signal_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_crash_with_watchpoint_breakpoint_signal_dwarf(self):
+ def test_crash_with_watchpoint_breakpoint_signal(self):
""" Test a thread that crashes while other threads generate a signal and hit a watchpoint and breakpoint. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_crash_threads=1,
num_breakpoint_threads=1,
num_signal_threads=1,
num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
@skipIfRemoteDueToDeadlock
- def test_delayed_crash_with_breakpoint_watchpoint_dwarf(self):
+ def test_delayed_crash_with_breakpoint_watchpoint(self):
""" Test a thread with a delayed crash while other threads hit a watchpoint and a breakpoint. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_delay_crash_threads=1,
num_breakpoint_threads=1,
num_watchpoint_threads=1)
- @dwarf_test
@skipIfFreeBSD # timing out on buildbot
- def test_delayed_crash_with_breakpoint_signal_dwarf(self):
+ def test_delayed_crash_with_breakpoint_signal(self):
""" Test a thread with a delayed crash while other threads generate a signal and hit a breakpoint. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.do_thread_actions(num_delay_crash_threads=1,
num_breakpoint_threads=1,
num_signal_threads=1)
diff --git a/lldb/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py b/lldb/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
index 96010def4a9..e196fa29429 100644
--- a/lldb/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
+++ b/lldb/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
@@ -12,26 +12,15 @@ class CreateDuringStepTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_step_inst_with_dsym(self):
- """Test thread creation during step-inst handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.crash_during_step_inst_test()
-
- @dwarf_test
- @expectedFailureWindows("llvm.org/pr24778")
- @expectedFailureAndroid("llvm.org/pr24497", archs=['arm', 'aarch64'])
- def test_step_inst_with_dwarf(self):
- """Test thread creation during step-inst handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.crash_during_step_inst_test()
-
def setUp(self):
TestBase.setUp(self)
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
- def crash_during_step_inst_test(self):
+ @expectedFailureWindows("llvm.org/pr24778")
+ @expectedFailureAndroid("llvm.org/pr24497", archs=['arm', 'aarch64'])
+ def test_step_inst_with(self):
+ """Test thread creation during step-inst handling."""
+ self.build(dictionary=self.getBuildFlags())
exe = os.path.join(os.getcwd(), "a.out")
target = self.dbg.CreateTarget(exe)
diff --git a/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py b/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
index 6bd0d6b27db..51bc26f9d0e 100644
--- a/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
+++ b/lldb/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
@@ -12,32 +12,23 @@ class CreateAfterAttachTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_create_after_attach_with_dsym(self):
- """Test thread creation after process attach."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
- self.create_after_attach(use_fork=False)
-
@skipIfFreeBSD # Hangs. May be the same as Linux issue llvm.org/pr16229 but
# not yet investigated. Revisit once required functionality
# is implemented for FreeBSD.
@skipIfWindows # Occasionally hangs on Windows, may be same as other issues.
- @dwarf_test
- def test_create_after_attach_with_dwarf_and_popen(self):
+ def test_create_after_attach_with_popen(self):
"""Test thread creation after process attach."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.create_after_attach(use_fork=False)
@skipIfFreeBSD # Hangs. Revisit once required functionality is implemented
# for FreeBSD.
- @dwarf_test
@skipIfRemote
@skipIfWindows # Windows doesn't have fork.
@expectedFlakeyLinux("llvm.org/pr16229") # 1/100 dosep, build 3546, clang-3.5 x84_64
- def test_create_after_attach_with_dwarf_and_fork(self):
+ def test_create_after_attach_with_fork(self):
"""Test thread creation after process attach."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.create_after_attach(use_fork=True)
def setUp(self):
diff --git a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
index fd8cf77b7e8..76fbc1559ba 100644
--- a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
+++ b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
@@ -12,59 +12,32 @@ class CreateDuringStepTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_step_inst_with_dsym(self):
- """Test thread creation during step-inst handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.create_during_step_inst_test()
-
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_step_over_with_dsym(self):
- """Test thread creation during step-over handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.create_during_step_over_test()
-
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_step_in_with_dsym(self):
- """Test thread creation during step-in handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.create_during_step_in_test()
-
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
@expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_step_inst_with_dwarf(self):
+ def test_step_inst(self):
"""Test thread creation during step-inst handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.create_during_step_inst_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.create_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step')
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
@expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_step_over_with_dwarf(self):
+ def test_step_over(self):
"""Test thread creation during step-over handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.create_during_step_over_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.create_during_step_base("thread step-over -m all-threads", 'stop reason = step over')
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
@expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_step_in_with_dwarf(self):
+ def test_step_in(self):
"""Test thread creation during step-in handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.create_during_step_in_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.create_during_step_base("thread step-in -m all-threads", 'stop reason = step in')
def setUp(self):
# Call super's setUp().
@@ -73,18 +46,6 @@ class CreateDuringStepTestCase(TestBase):
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
self.continuepoint = line_number('main.cpp', '// Continue from here')
- def create_during_step_inst_test(self):
- """Test thread creation while using step-inst."""
- self.create_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step')
-
- def create_during_step_over_test(self):
- """Test thread creation while using step-over."""
- self.create_during_step_base("thread step-over -m all-threads", 'stop reason = step over')
-
- def create_during_step_in_test(self):
- """Test thread creation while using step-in."""
- self.create_during_step_base("thread step-in -m all-threads", 'stop reason = step in')
-
def create_during_step_base(self, step_cmd, step_stop_reason):
"""Test thread creation while using step-in."""
exe = os.path.join(os.getcwd(), "a.out")
diff --git a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
index 9d6974d8865..cecc5d91f78 100644
--- a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
+++ b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
@@ -12,32 +12,19 @@ class ExitDuringBreakpointTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_with_dsym(self):
- """Test thread exit during breakpoint handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.exit_during_breakpoint_test()
-
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
- @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
- @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_with_dwarf(self):
- """Test thread exit during breakpoint handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.exit_during_breakpoint_test()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number for our breakpoint.
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
- def exit_during_breakpoint_test(self):
+ @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
+ @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
+ @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
+ @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
+ def test(self):
"""Test thread exit during breakpoint handling."""
+ self.build(dictionary=self.getBuildFlags())
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
index 0908bbd217d..a69bb7f2a76 100644
--- a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -12,68 +12,35 @@ class ExitDuringStepTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_thread_state_is_stopped_with_dsym(self):
- """Test thread exit during step handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.thread_state_is_stopped()
-
@expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
@expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_thread_state_is_stopped_with_dwarf(self):
+ def test_thread_state_is_stopped(self):
"""Test thread exit during step handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.thread_state_is_stopped()
-
- @skipUnlessDarwin
- @dsym_test
- def test_with_dsym(self):
- """Test thread exit during step handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.exit_during_step_inst_test()
-
- @skipUnlessDarwin
- @dsym_test
- def test_step_over_with_dsym(self):
- """Test thread exit during step-over handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.exit_during_step_over_test()
-
- @skipUnlessDarwin
- @dsym_test
- def test_step_in_with_dsym(self):
- """Test thread exit during step-in handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.exit_during_step_in_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', True)
@skipIfFreeBSD # llvm.org/pr21411: test is hanging
@expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_with_dwarf(self):
+ def test(self):
"""Test thread exit during step handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.exit_during_step_inst_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.exit_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step', False)
@skipIfFreeBSD # llvm.org/pr21411: test is hanging
@expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_step_over_with_dwarf(self):
+ def test_step_over(self):
"""Test thread exit during step-over handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.exit_during_step_over_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.exit_during_step_base("thread step-over -m all-threads", 'stop reason = step over', False)
@skipIfFreeBSD # llvm.org/pr21411: test is hanging
@expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_step_in_with_dwarf(self):
+ def test_step_in(self):
"""Test thread exit during step-in handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.exit_during_step_in_test()
+ self.build(dictionary=self.getBuildFlags())
+ self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', False)
def setUp(self):
# Call super's setUp().
@@ -82,22 +49,6 @@ class ExitDuringStepTestCase(TestBase):
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
self.continuepoint = line_number('main.cpp', '// Continue from here')
- def exit_during_step_inst_test(self):
- """Test thread exit while using step-inst."""
- self.exit_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step', False)
-
- def exit_during_step_over_test(self):
- """Test thread exit while using step-over."""
- self.exit_during_step_base("thread step-over -m all-threads", 'stop reason = step over', False)
-
- def exit_during_step_in_test(self):
- """Test thread exit while using step-in."""
- self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', False)
-
- def thread_state_is_stopped (self):
- """Go to first point where all threads are stopped, and test that the thread state is correctly set."""
- self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', True)
-
def exit_during_step_base(self, step_cmd, step_stop_reason, test_thread_state):
"""Test thread exit during step handling."""
exe = os.path.join(os.getcwd(), "a.out")
diff --git a/lldb/test/functionalities/thread/jump/TestThreadJump.py b/lldb/test/functionalities/thread/jump/TestThreadJump.py
index d1c279fd7d2..3919a242127 100644
--- a/lldb/test/functionalities/thread/jump/TestThreadJump.py
+++ b/lldb/test/functionalities/thread/jump/TestThreadJump.py
@@ -12,29 +12,9 @@ class ThreadJumpTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_with_dsym(self):
+ def test(self):
"""Test thread jump handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.thread_jump_test()
-
- @dwarf_test
- def test_with_dwarf(self):
- """Test thread jump handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.thread_jump_test()
-
- def do_min_test(self, start, jump, var, value):
- self.runCmd("j %i" % start) # jump to the start marker
- self.runCmd("thread step-in") # step into the min fn
- self.runCmd("j %i" % jump) # jump to the branch we're interested in
- self.runCmd("thread step-out") # return out
- self.runCmd("thread step-over") # assign to the global
- self.expect("expr %s" % var, substrs = [value]) # check it
-
- def thread_jump_test(self):
- """Test thread exit handling."""
+ self.build(dictionary=self.getBuildFlags())
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
@@ -67,6 +47,14 @@ class ThreadJumpTestCase(TestBase):
# Try jumping to another function (without forcing)
self.expect("j main.cpp:%i" % self.mark1, COMMAND_FAILED_AS_EXPECTED, error = True,
substrs = ["error"])
+
+ def do_min_test(self, start, jump, var, value):
+ self.runCmd("j %i" % start) # jump to the start marker
+ self.runCmd("thread step-in") # step into the min fn
+ self.runCmd("j %i" % jump) # jump to the branch we're interested in
+ self.runCmd("thread step-out") # return out
+ self.runCmd("thread step-over") # assign to the global
+ self.expect("expr %s" % var, substrs = [value]) # check it
if __name__ == '__main__':
import atexit
diff --git a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
index bf0b2bbd16c..cf6cda62a30 100644
--- a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
+++ b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
@@ -12,32 +12,19 @@ class MultipleBreakpointTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @dsym_test
- def test_with_dsym(self):
- """Test simultaneous breakpoints in multiple threads."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.multiple_breakpoint_test()
-
- @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
- @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
- @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
- @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_with_dwarf(self):
- """Test simultaneous breakpoints in multiple threads."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.multiple_breakpoint_test()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number for our breakpoint.
self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
- def multiple_breakpoint_test(self):
+ @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
+ @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
+ @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
+ @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
+ def test(self):
"""Test simultaneous breakpoints in multiple threads."""
+ self.build(dictionary=self.getBuildFlags())
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/functionalities/thread/state/TestThreadStates.py b/lldb/test/functionalities/thread/state/TestThreadStates.py
index 41b2c34a82b..e1f29a40b05 100644
--- a/lldb/test/functionalities/thread/state/TestThreadStates.py
+++ b/lldb/test/functionalities/thread/state/TestThreadStates.py
@@ -12,88 +12,43 @@ class ThreadStateTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- @expectedFailureDarwin("rdar://15367566")
- def test_state_after_breakpoint_with_dsym(self):
- """Test thread state after breakpoint."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
- self.thread_state_after_breakpoint_test()
-
@expectedFailureDarwin("rdar://15367566")
@expectedFailureFreeBSD('llvm.org/pr15824')
@expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- @dwarf_test
- def test_state_after_breakpoint_with_dwarf(self):
+ def test_state_after_breakpoint(self):
"""Test thread state after breakpoint."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.thread_state_after_breakpoint_test()
- @skipUnlessDarwin
- @dsym_test
- def test_state_after_continue_with_dsym(self):
- """Test thread state after continue."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
- self.thread_state_after_continue_test()
-
- @dwarf_test
@skipIfDarwin # 'llvm.org/pr23669', cause Python crash randomly
@expectedFailureDarwin('llvm.org/pr23669')
@expectedFailureWindows("llvm.org/pr24660")
- def test_state_after_continue_with_dwarf(self):
+ def test_state_after_continue(self):
"""Test thread state after continue."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
- self.thread_state_after_continue_test()
-
- @skipUnlessDarwin
- @skipIfDarwin # 'llvm.org/pr23669', cause Python crash randomly
- @expectedFailureDarwin('llvm.org/pr23669')
- @dsym_test
- def test_state_after_expression_with_dsym(self):
- """Test thread state after expression."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.thread_state_after_continue_test()
@skipIfDarwin # 'llvm.org/pr23669', cause Python crash randomly
@expectedFailureDarwin('llvm.org/pr23669')
@expectedFailureWindows("llvm.org/pr24660")
- @dwarf_test
- def test_state_after_expression_with_dwarf(self):
+ def test_state_after_expression(self):
"""Test thread state after expression."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.thread_state_after_continue_test()
- @skipUnlessDarwin
- @dsym_test
- @unittest2.expectedFailure("llvm.org/pr16172") # thread states not properly maintained
- def test_process_interrupt_with_dsym(self):
- """Test process interrupt."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
- self.process_interrupt_test()
-
- @dwarf_test
@unittest2.expectedFailure("llvm.org/pr16712") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- def test_process_interrupt_with_dwarf(self):
+ def test_process_interrupt(self):
"""Test process interrupt."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.process_interrupt_test()
- @skipUnlessDarwin
- @dsym_test
- @unittest2.expectedFailure("llvm.org/pr15824") # thread states not properly maintained
- def test_process_state_with_dsym(self):
- """Test thread states (comprehensive)."""
- self.buildDsym(dictionary=self.getBuildFlags(use_cpp11=False))
- self.thread_states_test()
-
- @dwarf_test
@unittest2.expectedFailure("llvm.org/pr15824") # thread states not properly maintained
@expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
- def test_process_state_with_dwarf(self):
+ def test_process_state(self):
"""Test thread states (comprehensive)."""
- self.buildDwarf(dictionary=self.getBuildFlags(use_cpp11=False))
+ self.build(dictionary=self.getBuildFlags(use_cpp11=False))
self.thread_states_test()
def setUp(self):
diff --git a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
index 2f26fc898d5..96a62e3ddca 100644
--- a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
+++ b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
@@ -12,52 +12,31 @@ class ThreadStepOutTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @dsym_test
- def test_step_single_thread_with_dsym(self):
- """Test thread step out on one thread via command interpreter. """
- self.buildDsym(dictionary=self.getBuildFlags())
- self.step_out_test(self.step_out_single_thread_with_cmd)
-
@skipIfLinux # Test occasionally times out on the Linux build bot
@expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
@expectedFailureFreeBSD("llvm.org/pr18066") # inferior does not exit
@expectedFailureWindows # Test crashes
- @dwarf_test
- def test_step_single_thread_with_dwarf(self):
+ def test_step_single_thread(self):
"""Test thread step out on one thread via command interpreter. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.step_out_test(self.step_out_single_thread_with_cmd)
- @dsym_test
- def test_step_all_threads_with_dsym(self):
- """Test thread step out on all threads via command interpreter. """
- self.buildDsym(dictionary=self.getBuildFlags())
- self.step_out_test(self.step_out_all_threads_with_cmd)
-
@skipIfLinux # Test occasionally times out on the Linux build bot
@expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
@expectedFailureFreeBSD("llvm.org/pr19347") # 2nd thread stops at breakpoint
@expectedFailureWindows # Test crashes
- @dwarf_test
- def test_step_all_threads_with_dwarf(self):
+ def test_step_all_threads(self):
"""Test thread step out on all threads via command interpreter. """
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.step_out_test(self.step_out_all_threads_with_cmd)
- @dsym_test
- def test_python_with_dsym(self):
- """Test thread step out on one threads via Python API (dsym)."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.step_out_test(self.step_out_with_python)
-
@skipIfLinux # Test occasionally times out on the Linux build bot
@expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
@expectedFailureFreeBSD("llvm.org/pr19347")
@expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_python_with_dwarf(self):
+ def test_python(self):
"""Test thread step out on one thread via Python API (dwarf)."""
- self.buildDwarf(dictionary=self.getBuildFlags())
+ self.build(dictionary=self.getBuildFlags())
self.step_out_test(self.step_out_with_python)
def setUp(self):
diff --git a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
index 3155ef0e63d..99f7ac63b20 100644
--- a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
+++ b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
@@ -12,21 +12,6 @@ class ThreadExitTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @dsym_test
- def test_with_dsym(self):
- """Test thread exit handling."""
- self.buildDsym(dictionary=self.getBuildFlags())
- self.thread_exit_test()
-
- @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
- @expectedFailureWindows("llvm.org/pr24681")
- @dwarf_test
- def test_with_dwarf(self):
- """Test thread exit handling."""
- self.buildDwarf(dictionary=self.getBuildFlags())
- self.thread_exit_test()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
@@ -36,8 +21,11 @@ class ThreadExitTestCase(TestBase):
self.break_3 = line_number('main.cpp', '// Set third breakpoint here')
self.break_4 = line_number('main.cpp', '// Set fourth breakpoint here')
- def thread_exit_test(self):
+ @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
+ @expectedFailureWindows("llvm.org/pr24681")
+ def test(self):
"""Test thread exit handling."""
+ self.build(dictionary=self.getBuildFlags())
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
diff --git a/lldb/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py b/lldb/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
index 99eebc6daa4..1c22ae858a0 100644
--- a/lldb/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
+++ b/lldb/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
@@ -12,27 +12,14 @@ class ThreadSpecificBreakTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- @skipUnlessDarwin
- @python_api_test
- @dsym_test
- def test_with_dsym_python(self):
- """Test that we obey thread conditioned breakpoints."""
- self.buildDsym()
- self.do_thread_specific_break()
-
@skipIfFreeBSD # test frequently times out or hangs
@expectedFailureFreeBSD('llvm.org/pr18522') # hits break in another thread in testrun
@expectedFailureWindows("llvm.org/pr24777")
@python_api_test
- @dwarf_test
@expectedFlakeyLinux # this test fails 6/100 dosep runs
- def test_with_dwarf_python(self):
- """Test that we obey thread conditioned breakpoints."""
- self.buildDwarf()
- self.do_thread_specific_break()
-
- def do_thread_specific_break(self):
+ def test_python(self):
"""Test that we obey thread conditioned breakpoints."""
+ self.build()
exe = os.path.join(os.getcwd(), "a.out")
self.dbg.HandleCommand ("log enable -f /tmp/lldb-testsuite-log.txt lldb step breakpoint process")
OpenPOWER on IntegriCloud