[lldb] Print the load command that wasn't found in TestSimulatorPlatform

Print which load command we were looking for when the sanity check
fails:

  AssertionError: 0 != 1 : wrong number of load commands for
  LC_VERSION_MIN_MACOSX
This commit is contained in:
Jonas Devlieghere 2020-08-19 12:40:53 -07:00
parent ab401a8c8a
commit 9f5210aacf
1 changed files with 4 additions and 1 deletions

View File

@ -21,7 +21,10 @@ class TestSimulatorPlatformLaunching(TestBase):
for line in load_cmds.split('\n'):
if expected_load_command in line:
found += 1
self.assertEquals(found, 1, "wrong load command")
self.assertEquals(
found, 1, "wrong number of load commands for {}".format(
expected_load_command))
def check_debugserver(self, log, expected_platform, expected_version):
"""scan the debugserver packet log"""