[lldb] Fix TestFunctionStarts.py on AS
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 6 Aug 2021 16:01:52 +0000 (09:01 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 6 Aug 2021 16:03:01 +0000 (09:03 -0700)
The tests strips the binary which invalidates the code signature. Skip
code signing for this test.

lldb/test/API/macosx/function-starts/TestFunctionStarts.py

index 5dc43a5..e8f540b 100644 (file)
@@ -22,7 +22,7 @@ class FunctionStartsTestCase(TestBase):
     @skipIfReproducer # File synchronization is not supported during replay.
     def test_function_starts_binary(self):
         """Test that we make synthetic symbols when we have the binary."""
-        self.build()
+        self.build(dictionary={'CODESIGN': ''}) # Binary is getting stripped later.
         self.do_function_starts(False)
 
     @skipIfRemote
@@ -30,7 +30,7 @@ class FunctionStartsTestCase(TestBase):
     @skipIfReproducer # File synchronization is not supported during replay.
     def test_function_starts_no_binary(self):
         """Test that we make synthetic symbols when we don't have the binary"""
-        self.build()
+        self.build(dictionary={'CODESIGN': ''}) # Binary is getting stripped later.
         self.do_function_starts(True)
 
     def do_function_starts(self, in_memory):