llvm-project/lldb/test/Shell/ScriptInterpreter/Python/scripted_breakpoint.test
Jonas Devlieghere 6ae61f7675 [lldb/Test] Skip script interpreter tests reading from stdin for lldb-repro
The reproducers currently only shadow the command interpreter. It would
be possible to make it work for the Lua interpreter which uses the
IOHandlerEditline under the hood, but the Python one runs a REPL in
Python itself so there's no (straightforward) way to shadow that.

Given that we already capture any API calls, this isn't super high on my
list of priorities.
2020-01-22 15:22:25 -08:00

13 lines
364 B
Plaintext

# REQUIRES: python
# UNSUPPORTED: lldb-repro
#
# Test that the scripting language argument to "breakpoint command" is honored
# even if the global scripting language is different.
#
# RUN: cat %s | %lldb --script-language none 2>&1 | FileCheck %s
b main
breakpoint command add -s python
print("foo")
DONE
# CHECK: Enter your Python command(s). Type 'DONE' to end.