2 Test the output of `frame diagnose` for calling virtual methods
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 TestDiagnoseInheritance(TestBase):
15 mydir = TestBase.compute_mydir(__file__)
18 def test_diagnose_inheritance(self):
21 exe = os.path.join(os.getcwd(), "a.out")
22 self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
23 self.runCmd("run", RUN_SUCCEEDED)
24 self.expect("thread list", "Thread should be stopped",
26 self.expect("frame diagnose", "Crash diagnosis was accurate", "d")