aboutsummaryrefslogtreecommitdiff
path: root/unittests/darwintests.py
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/darwintests.py')
-rw-r--r--unittests/darwintests.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/unittests/darwintests.py b/unittests/darwintests.py
index 254b3d0..1f17760 100644
--- a/unittests/darwintests.py
+++ b/unittests/darwintests.py
@@ -148,3 +148,8 @@ class DarwinTests(BasePlatformTests):
testdir = os.path.join(self.objcpp_test_dir, '1 simple')
self.init(testdir)
self.assertIn('-std=c++14', self.get_compdb()[0]['command'])
+
+ def test_darwin_get_object_archs(self):
+ from mesonbuild.mesonlib import darwin_get_object_archs
+ archs = darwin_get_object_archs('/System/Library/CoreServices/Encodings/libSymbolConverter.dylib')
+ self.assertEqual(archs, ['x86_64', 'aarch64'])