forked from OSchip/llvm-project
[lldb/Test] XFAIL TestRequireHWBreakpoints when HW BPs are avialable
Resolves PR44055
This commit is contained in:
parent
002ec79f97
commit
f78f15a60e
|
@ -13,6 +13,17 @@ class BreakpointLocationsTestCase(TestBase):
|
||||||
NO_DEBUG_INFO_TESTCASE = True
|
NO_DEBUG_INFO_TESTCASE = True
|
||||||
mydir = TestBase.compute_mydir(__file__)
|
mydir = TestBase.compute_mydir(__file__)
|
||||||
|
|
||||||
|
def supports_hw_breakpoints(self):
|
||||||
|
self.build()
|
||||||
|
self.runCmd("file " + self.getBuildArtifact("a.out"),
|
||||||
|
CURRENT_EXECUTABLE_SET)
|
||||||
|
self.runCmd("breakpoint set -b main --hardware")
|
||||||
|
self.runCmd("run")
|
||||||
|
print(self.res.GetOutput())
|
||||||
|
if 'stopped' in self.res.GetOutput():
|
||||||
|
return 'Hardware breakpoints are supported'
|
||||||
|
return None
|
||||||
|
|
||||||
def test_breakpoint(self):
|
def test_breakpoint(self):
|
||||||
"""Test regular breakpoints when hardware breakpoints are required."""
|
"""Test regular breakpoints when hardware breakpoints are required."""
|
||||||
self.build()
|
self.build()
|
||||||
|
@ -25,8 +36,7 @@ class BreakpointLocationsTestCase(TestBase):
|
||||||
self.assertTrue(breakpoint.IsHardware())
|
self.assertTrue(breakpoint.IsHardware())
|
||||||
|
|
||||||
@skipIfWindows
|
@skipIfWindows
|
||||||
@expectedFailureAll(archs="aarch64", oslist="linux",
|
@expectedFailure(supports_hw_breakpoints)
|
||||||
bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
|
|
||||||
def test_step_range(self):
|
def test_step_range(self):
|
||||||
"""Test stepping when hardware breakpoints are required."""
|
"""Test stepping when hardware breakpoints are required."""
|
||||||
self.build()
|
self.build()
|
||||||
|
@ -48,8 +58,7 @@ class BreakpointLocationsTestCase(TestBase):
|
||||||
in error.GetCString())
|
in error.GetCString())
|
||||||
|
|
||||||
@skipIfWindows
|
@skipIfWindows
|
||||||
@expectedFailureAll(archs="aarch64", oslist="linux",
|
@expectedFailure(supports_hw_breakpoints)
|
||||||
bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
|
|
||||||
def test_step_out(self):
|
def test_step_out(self):
|
||||||
"""Test stepping out when hardware breakpoints are required."""
|
"""Test stepping out when hardware breakpoints are required."""
|
||||||
self.build()
|
self.build()
|
||||||
|
@ -70,8 +79,7 @@ class BreakpointLocationsTestCase(TestBase):
|
||||||
in error.GetCString())
|
in error.GetCString())
|
||||||
|
|
||||||
@skipIfWindows
|
@skipIfWindows
|
||||||
@expectedFailureAll(archs="aarch64", oslist="linux",
|
@expectedFailure(supports_hw_breakpoints)
|
||||||
bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
|
|
||||||
def test_step_over(self):
|
def test_step_over(self):
|
||||||
"""Test stepping over when hardware breakpoints are required."""
|
"""Test stepping over when hardware breakpoints are required."""
|
||||||
self.build()
|
self.build()
|
||||||
|
@ -90,8 +98,7 @@ class BreakpointLocationsTestCase(TestBase):
|
||||||
])
|
])
|
||||||
|
|
||||||
@skipIfWindows
|
@skipIfWindows
|
||||||
@expectedFailureAll(archs="aarch64", oslist="linux",
|
@expectedFailure(supports_hw_breakpoints)
|
||||||
bugnumber="https://bugs.llvm.org/show_bug.cgi?id=44055")
|
|
||||||
def test_step_until(self):
|
def test_step_until(self):
|
||||||
"""Test stepping until when hardware breakpoints are required."""
|
"""Test stepping until when hardware breakpoints are required."""
|
||||||
self.build()
|
self.build()
|
||||||
|
|
Loading…
Reference in New Issue