From 9f5210aacfec8602beb60f309389e2261b4d3c75 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 19 Aug 2020 12:40:53 -0700 Subject: [PATCH] [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 --- lldb/test/API/macosx/simulator/TestSimulatorPlatform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py b/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py index 9fd542d2f667..4c3a86531c8f 100644 --- a/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py +++ b/lldb/test/API/macosx/simulator/TestSimulatorPlatform.py @@ -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"""