llvm-project
24 строки · 712.0 Байт
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):14NO_DEBUG_INFO_TESTCASE = True15
16def test_find_app_in_bundle(self):17"""This reads in the .app, makes sure we get the right binary and can run it."""18self.build()19lldbutil.run_to_source_breakpoint(20self,21"breakpoint here",22lldb.SBFileSpec("main.c"),23exe_name=self.getBuildArtifact("TestApp.app"),24)25