llvm-project/lldb/test/Shell/ScriptInterpreter/Python/fail_breakpoint_oneline.test
Pedro Tammela 280ae10774 [LLDB] fix error message for one-line breakpoint scripts
LLDB is ignoring compilation errors for one-line breakpoint scripts.
This patch fixes the issues and now the error message of the
ScriptInterpreter is shown to the user.

I had to remove a new-line character for the Lua interpreter since it
was duplicated.

Differential Revision: https://reviews.llvm.org/D92729
2020-12-07 11:21:07 +00:00

8 lines
201 B
Plaintext

# REQUIRES: python
# UNSUPPORTED: lldb-repro
#
# RUN: %lldb -s %s --script-language python 2>&1 | FileCheck %s
b main
breakpoint command add -s python -o "1234_foo"
# CHECK: error: SyntaxError({{.*}})