• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""
2Make sure we can find the binary inside an app bundle.
3"""
4
5import lldb
6from lldbsuite.test.decorators import *
7import lldbsuite.test.lldbutil as lldbutil
8import lldbsuite.test.lldbplatformutil as lldbplatformutil
9from lldbsuite.test.lldbtest import *
10
11@decorators.skipUnlessDarwin
12class FindAppInMacOSAppBundle(TestBase):
13
14    mydir = TestBase.compute_mydir(__file__)
15
16    NO_DEBUG_INFO_TESTCASE = True
17
18    def test_find_app_in_bundle(self):
19        """This reads in the .app, makes sure we get the right binary and can run it."""
20        self.build()
21        lldbutil.run_to_source_breakpoint(
22            self, 'breakpoint here', lldb.SBFileSpec('main.c'),
23            exe_name=self.getBuildArtifact("TestApp.app"))
24