[Lldb-commits] [lldb] Fix a test failure in PR #92843 (PR #94067)

via lldb-commits lldb-commits at lists.llvm.org
Fri May 31 16:20:03 PDT 2024


================
@@ -177,7 +177,8 @@ def test_get_transcript(self):
         # (lldb) r
         self.assertEqual(transcript[3]["command"], "r")
         self.assertEqual(transcript[3]["commandName"], "process launch")
-        self.assertEqual(transcript[3]["commandArguments"], "-X true --")
+        # Not checking `commandArguments`, because it can be different on different platforms/configurations.
+        # On macOS, it's "-X true --". On Linux, it's "-c/bin/bash --".
----------------
royitaqi wrote:

We do need a target. At the end of this test, it validates that the output of "statistics dump" command is a valid JSON object. In order for such output to be generated, we need a target. Otherwise the command says:
> (lldb) statistics dump
> error: invalid target, create a target using the 'target create' command

https://github.com/llvm/llvm-project/pull/94067


More information about the lldb-commits mailing list