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    NO_DEBUG_INFO_TESTCASE = True
15
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, 'breakpoint here', lldb.SBFileSpec('main.c'),
21            exe_name=self.getBuildArtifact("TestApp.app"))
22