brintos

brintos / llvm-project-archived public Read only

0
0
Text · 712 B · 5b66679 Raw
25 lines · python
1"""2Make sure we can find the binary inside an app bundle.3"""4 5import lldb6from lldbsuite.test.decorators import *7import lldbsuite.test.lldbutil as lldbutil8import lldbsuite.test.lldbplatformutil as lldbplatformutil9from lldbsuite.test.lldbtest import *10 11 12@decorators.skipUnlessDarwin13class FindAppInMacOSAppBundle(TestBase):14    NO_DEBUG_INFO_TESTCASE = True15 16    def test_find_app_in_bundle(self):17        """This reads in the .app, makes sure we get the right binary and can run it."""18        self.build()19        lldbutil.run_to_source_breakpoint(20            self,21            "breakpoint here",22            lldb.SBFileSpec("main.c"),23            exe_name=self.getBuildArtifact("TestApp.app"),24        )25