summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py
blob: 23b26772554d4c508e60f32dee1887e809ac884a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# TestMacABImacOSFramework.py
import lldb
from lldbsuite.test.lldbtest import *
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbutil as lldbutil
import os
import unittest2


class TestMacABImacOSFramework(TestBase):

    mydir = TestBase.compute_mydir(__file__)

    @skipIf(macos_version=["<", "10.15"])
    @skipUnlessDarwin
    @skipIfDarwinEmbedded
    # There is a Clang driver change missing on llvm.org.
    @expectedFailureAll(bugnumber="rdar://problem/54986190>")
    def test_macabi(self):
        """Test the x86_64-apple-ios-macabi target linked against a macos dylib"""
        self.build()
        lldbutil.run_to_source_breakpoint(self, "break here",
                                          lldb.SBFileSpec('main.c'))
        self.expect("image list -t -b",
                    patterns=["x86_64.*-apple-ios.*-macabi a\.out",
                              "x86_64.*-apple-macosx.* libfoo.dylib[^(]"])
        self.expect("fr v s", "Hello MacABI")
        self.expect("p s", "Hello MacABI")
OpenPOWER on IntegriCloud