diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 | 
| commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
| tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /packages/Python/lldbsuite/test/lang/cpp/class_static | |
| parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) | |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/lang/cpp/class_static')
| -rw-r--r-- | packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py | 17 | 
1 files changed, 7 insertions, 10 deletions
| diff --git a/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py b/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py index d47d1b7dde41..acce769bf949 100644 --- a/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py +++ b/packages/Python/lldbsuite/test/lang/cpp/class_static/TestStaticVariables.py @@ -8,8 +8,9 @@ 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 StaticVariableTestCase(TestBase): @@ -21,7 +22,7 @@ class StaticVariableTestCase(TestBase):          # Find the line number to break at.          self.line = line_number('main.cpp', '// Set break point at this line.') -    @expectedFailureWindows("llvm.org/pr24764") +    @expectedFailureAll(oslist=["windows"], bugnumber="llvm.org/pr24764")      def test_with_run_command(self):          """Test that file and class static variables display correctly."""          self.build() @@ -49,9 +50,8 @@ class StaticVariableTestCase(TestBase):                  startstr = "(int) A::g_points[1].x = 11")      @expectedFailureDarwin(9980907) -    @expectedFailureClang('Clang emits incomplete debug info.') -    @expectedFailureFreeBSD('llvm.org/pr20550 failing on FreeBSD-11') -    @expectedFailureGcc('GCC emits incomplete debug info.') +    @expectedFailureAll(compiler=["clang", "gcc"], bugnumber="Compiler emits incomplete debug info") +    @expectedFailureAll(oslist=['freebsd'], bugnumber='llvm.org/pr20550 failing on FreeBSD-11')      @add_test_categories(['pyapi'])      def test_with_python_api(self):          """Test Python APIs on file and class static variables.""" @@ -69,11 +69,8 @@ class StaticVariableTestCase(TestBase):          self.assertTrue(process, PROCESS_IS_VALID)          # The stop reason of the thread should be breakpoint. -        thread = process.GetThreadAtIndex(0) -        if thread.GetStopReason() != lldb.eStopReasonBreakpoint: -            from lldbsuite.test.lldbutil import stop_reason_to_str -            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS % -                      stop_reason_to_str(thread.GetStopReason())) +        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint) +        self.assertIsNotNone(thread)          # Get the SBValue of 'A::g_points' and 'g_points'.          frame = thread.GetFrameAtIndex(0) | 
