summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-09-04 17:23:15 +0000
committerAdrian Prantl <aprantl@apple.com>2019-09-04 17:23:15 +0000
commit2461061168f4ac4ca8a1823768a00d1c63355b1b (patch)
tree4e38a76bbb1f43efde95d83428162d3cafeb3469 /lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py
parent40fe351cf699eda8d7d9a72c7bbbb37cef7f3164 (diff)
downloadbcm5719-llvm-2461061168f4ac4ca8a1823768a00d1c63355b1b.tar.gz
bcm5719-llvm-2461061168f4ac4ca8a1823768a00d1c63355b1b.zip
Upstream macCatalyst support in debugserver and the macOS dynamic loader
plugin. Unfortunately the test is currently XFAILed because of missing changes to the clang driver. Differential Revision: https://reviews.llvm.org/D67124 llvm-svn: 370931
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py b/lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py
new file mode 100644
index 00000000000..23b26772554
--- /dev/null
+++ b/lldb/packages/Python/lldbsuite/test/macosx/macabi/TestMacABImacOSFramework.py
@@ -0,0 +1,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