[Lldb-commits] [lldb] [lldb/Commands] Alias `script` command to `scripting run` (PR #97263)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 3 11:13:14 PDT 2024


================
@@ -80,7 +80,13 @@ def test_command_abbreviations_and_aliases(self):
         # Check a command that wants the raw input.
         command_interpreter.ResolveCommand(r"""sc print("\n\n\tHello!\n")""", result)
         self.assertTrue(result.Succeeded())
----------------
JDevlieghere wrote:

You could test all the prefixes with something like this:

```
str = 'script'
for i in range(2, len(str)):
    command = str[0:i]
    self.assertEqual(command ...)
```

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


More information about the lldb-commits mailing list