Skip to content

Commit e320d9b

Browse files
committed
[lldb] Skip TestCortexMExceptionUnwind except Darwin
I'm getting a failure on one linux CI, lldb-remote-linux-ubuntu, where the test of assertEqual(thread.GetNumFrames(), 6) fails because the unwinder only has one frame, most likely the target triple is not set to armv7m-apple-* so ABISysV_arm is being used instead of ABIMacOSX_arm and the architecture default unwind plans behave differently. Possibly the frame pointer register, or possibly the way the arch default unwind plans are structured. Skipping on linux for now until I can debug further. Can repo on Darwin by changing the binary.json `"triple": "armv7m-apple"` to armv7m-linux.
1 parent 2669fde commit e320d9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/test/API/functionalities/unwind/cortex-m-exception/TestCortexMExceptionUnwind.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class TestCortexMExceptionUnwind(TestBase):
1313
NO_DEBUG_INFO_TESTCASE = True
1414

15+
@skipUnlessDarwin # on the lldb-remote-linux-ubuntu CI, only get 1 stack frame not 6
1516
def test_no_fpu(self):
1617
"""Test that we can backtrace correctly through an ARM Cortex-M Exception return stack"""
1718

@@ -31,6 +32,7 @@ def test_no_fpu(self):
3132
self.assertTrue(process.IsValid())
3233

3334
if self.TraceOn():
35+
self.runCmd("target list")
3436
self.runCmd("image list")
3537
self.runCmd("target modules dump sections")
3638
self.runCmd("target modules dump symtab")

0 commit comments

Comments
 (0)