diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/thread/step_out')
| -rw-r--r-- | packages/Python/lldbsuite/test/functionalities/thread/step_out/TestThreadStepOut.py | 21 | ||||
| -rw-r--r-- | packages/Python/lldbsuite/test/functionalities/thread/step_out/main.cpp | 14 | 
2 files changed, 12 insertions, 23 deletions
| diff --git a/packages/Python/lldbsuite/test/functionalities/thread/step_out/TestThreadStepOut.py b/packages/Python/lldbsuite/test/functionalities/thread/step_out/TestThreadStepOut.py index b2d966c4c0f3..735ee80d624e 100644 --- a/packages/Python/lldbsuite/test/functionalities/thread/step_out/TestThreadStepOut.py +++ b/packages/Python/lldbsuite/test/functionalities/thread/step_out/TestThreadStepOut.py @@ -8,35 +8,36 @@ from __future__ import print_function  import os, time  import lldb +from lldbsuite.test.decorators import *  from lldbsuite.test.lldbtest import * -import lldbsuite.test.lldbutil as lldbutil +from lldbsuite.test import lldbutil  class ThreadStepOutTestCase(TestBase):      mydir = TestBase.compute_mydir(__file__)      @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 +    @expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr23477 Test occasionally times out on the Linux build bot") +    @expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr18066 inferior does not exit") +    @expectedFailureAll(oslist=["windows"])      def test_step_single_thread(self):          """Test thread step out on one thread via command interpreter. """          self.build(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/pr19347") # 2nd thread stops at breakpoint -    @expectedFailureWindows # Test crashes +    @expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr23477 Test occasionally times out on the Linux build bot") +    @expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr19347 2nd thread stops at breakpoint") +    @expectedFailureAll(oslist=["windows"])      def test_step_all_threads(self):          """Test thread step out on all threads via command interpreter. """          self.build(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") -    @expectedFailureWindows("llvm.org/pr24681") +    @expectedFailureAll(oslist=["linux"], bugnumber="llvm.org/pr23477 Test occasionally times out on the Linux build bot") +    @expectedFailureAll(oslist=["freebsd"], bugnumber="llvm.org/pr19347 2nd thread stops at breakpoint") +    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24681")      def test_python(self):          """Test thread step out on one thread via Python API (dwarf)."""          self.build(dictionary=self.getBuildFlags()) diff --git a/packages/Python/lldbsuite/test/functionalities/thread/step_out/main.cpp b/packages/Python/lldbsuite/test/functionalities/thread/step_out/main.cpp index b4c6216d6bfe..31f9a1576b92 100644 --- a/packages/Python/lldbsuite/test/functionalities/thread/step_out/main.cpp +++ b/packages/Python/lldbsuite/test/functionalities/thread/step_out/main.cpp @@ -13,19 +13,7 @@  #include <atomic>  #include <thread> -// Note that although hogging the CPU while waiting for a variable to change -// would be terrible in production code, it's great for testing since it -// avoids a lot of messy context switching to get multiple threads synchronized. -#define do_nothing() - -#define pseudo_barrier_wait(bar) \ -    --bar;                       \ -    while (bar > 0)              \ -        do_nothing(); - -#define pseudo_barrier_init(bar, count) (bar = count) - -std::atomic_int g_barrier; +pseudo_barrier_t g_barrier;  volatile int g_test = 0; | 
