@@ -39,7 +39,7 @@ def check_debugserver(self, log, expected_platform, expected_version):
3939 if expected_version :
4040 self .assertEqual (aout_info ["min_version_os_sdk" ], expected_version )
4141
42- def run_with (self , arch , os , vers , env , expected_load_command ):
42+ def run_with (self , arch , os , vers , env , expected_load_command , expected_platform = None ):
4343 env_list = [env ] if env else []
4444 triple = "-" .join ([arch , "apple" , os + vers ] + env_list )
4545 sdk = lldbutil .get_xcode_sdk (os , env )
@@ -75,6 +75,11 @@ def run_with(self, arch, os, vers, env, expected_load_command):
7575 self , "break here" , lldb .SBFileSpec ("hello.c" )
7676 )
7777 triple_re = "-" .join ([arch , "apple" , os + vers + ".*" ] + env_list )
78+ if expected_platform is not None :
79+ # The current platform should be expected
80+ self .expect ("platform status" , patterns = [r"Platform: " + expected_platform ])
81+ # Should be able to list processes on the current platform
82+ self .expect ("platform process list" , patterns = [r"\d+ matching processes were found on \"%s\"" % expected_platform ])
7883 self .expect ("image list -b -t" , patterns = [r"a\.out " + triple_re ])
7984 self .check_debugserver (log , os + env , vers )
8085
@@ -90,6 +95,7 @@ def test_ios(self):
9095 vers = "" ,
9196 env = "simulator" ,
9297 expected_load_command = "LC_BUILD_VERSION" ,
98+ expected_platform = "ios-simulator" ,
9399 )
94100
95101 @skipIfAsan
0 commit comments