import contextlib
import os
+from os.path import exists
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
return "Apple M" in features.decode('utf-8')
+def rosetta_debugserver_installed():
+ return exists("/Library/Apple/usr/libexec/oah/debugserver")
+
class TestLaunchProcessPosixSpawn(TestBase):
NO_DEBUG_INFO_TESTCASE = True
def test_apple_silicon(self):
self.build()
exe = self.getBuildArtifact("fat.out")
- self.run_arch(exe, 'x86_64')
+ if rosetta_debugserver_installed():
+ self.run_arch(exe, 'x86_64')
self.run_arch(exe, 'arm64')