[Lldb-commits] [lldb] [lldb] Add actionable feedback when overwriting a command fails (PR #76030)
Felipe de Azevedo Piovezan via lldb-commits
lldb-commits at lists.llvm.org
Wed Dec 20 03:03:42 PST 2023
================
@@ -161,6 +161,19 @@ def cleanup():
)
self.expect("my_command", substrs=["a.out"])
+ # Test that without --overwrite we are not allowed to redefine the command.
+ self.expect(
+ "command script add my_command --class welcome.TargetnameCommand",
+ substrs=[
+ (
+ 'user command "my_command" already exists and force replace was'
+ " not set by --overwrite or 'settings set"
+ " interpreter.require-overwrite false'"
+ ),
+ ],
+ error=True,
----------------
felipepiovezan wrote:
this is the format I got from the `black` tool...
https://github.com/llvm/llvm-project/pull/76030
More information about the lldb-commits
mailing list