brintos

brintos / llvm-project-archived public Read only

0
0
Text · 822 B · 2db054b Raw
25 lines · python
1"""2Test the output of `frame diagnose` for dereferencing a local variable3"""4 5 6import lldb7from lldbsuite.test.decorators import *8from lldbsuite.test.lldbtest import *9from lldbsuite.test import lldbutil10 11 12class TestLocalVariable(TestBase):13    @expectedFailureAll(oslist=["windows"])14    @skipIf(15        archs=no_match(["x86_64"])16    )  # <rdar://problem/33842388> frame diagnose doesn't work for armv7 or arm6417    def test_local_variable(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", substrs=["stopped"])24        self.expect("frame diagnose", "Crash diagnosis was accurate", substrs=["myInt"])25