================ @@ -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, ---------------- DavidSpickett wrote:
I welcome our new robot formatting overlords, even if they do strange things sometimes. Iirc it uses `"` if there is `'` in the string and vice versa, instead of `"""`. https://github.com/llvm/llvm-project/pull/76030 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits