diff options
Diffstat (limited to 'lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputConsole.test')
-rw-r--r-- | lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputConsole.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputConsole.test b/lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputConsole.test new file mode 100644 index 00000000000..c928a44afb7 --- /dev/null +++ b/lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputConsole.test @@ -0,0 +1,11 @@ +# Test that LLDB correctly allows scripted commands to set immediate output to +# the console. + +# RUN: %lldb -s %s \ +# RUN: -o 'command script import %S/Inputs/custom_command.py' \ +# RUN: -o 'command script add -f custom_command.command_function mycommand' \ +# RUN: -o 'mycommand' \ +# RUN: -o 'command script delete mycommand' \ +# RUN: 2>&1 | FileCheck %s + +# CHECK: this is a test string, just a test string |