ccc0f88efe06076c8d0260877c5a6b1bd599d730
[openbsd] /
1 """
2 Test the output of `frame diagnose` for a subexpression of a complicated expression
3 """
4
5
6 import lldb
7 from lldbsuite.test.decorators import *
8 from lldbsuite.test.lldbtest import *
9 from lldbsuite.test import lldbutil
10
11
12 class TestDiagnoseDereferenceArgument(TestBase):
13     mydir = TestBase.compute_mydir(__file__)
14
15     @skipUnlessDarwin
16     @skipIfDarwinEmbedded  # <rdar://problem/33842388> frame diagnose doesn't work for armv7 or arm64
17     def test_diagnose_dereference_argument(self):
18         TestBase.setUp(self)
19         self.build()
20         exe = self.getBuildArtifact("a.out")
21         self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
22         self.runCmd("run", RUN_SUCCEEDED)
23         self.expect("thread list", "Thread should be stopped",
24                     substrs=['stopped'])
25         self.expect(
26             "frame diagnose",
27             "Crash diagnosis was accurate",
28             "f->b->d")