2 Test the output of `frame diagnose` for dereferencing a local variable
5 from __future__ import print_function
9 from lldbsuite.test.decorators import *
10 from lldbsuite.test.lldbtest import *
11 from lldbsuite.test import lldbutil
14 class TestLocalVariable(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
18 @skipIfDarwinEmbedded # <rdar://problem/33842388> frame diagnose doesn't work for armv7 or arm64
19 def test_local_variable(self):
22 exe = self.getBuildArtifact("a.out")
23 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
24 self.runCmd("run", RUN_SUCCEEDED)
25 self.expect("thread list", "Thread should be stopped",
27 self.expect("frame diagnose", "Crash diagnosis was accurate", "myInt")