brintos

brintos / llvm-project-archived public Read only

0
0
Text · 817 B · 869081d Raw
34 lines · python
1"""2Test handling of Anonymous Structs, especially that they don't crash lldb.3"""4 5 6import lldb7import lldbsuite.test.lldbutil as lldbutil8from lldbsuite.test.decorators import *9from lldbsuite.test.lldbtest import *10import os11import shutil12import time13 14 15class TestFrameVarAnonStruct(TestBase):16    # If your test case doesn't stress debug info, then17    # set this to true.  That way it won't be run once for18    # each debug info format.19    NO_DEBUG_INFO_TESTCASE = True20 21    def test_frame_var(self):22        self.build()23        self.do_test()24 25    def do_test(self):26        target = self.createTestTarget()27 28        # Verify that we don't crash in this case.29        self.expect(30            "target variable 'b.x'",31            error=True,32            substrs=["can't find global variable 'b.x'"],33        )34