xref: /llvm-project/lldb/test/Shell/ScriptInterpreter/Lua/breakpoint_oneline_callback.test (revision 3338819b08faa7f23f65fb4e67154583984ebf5c)
1# RUN: echo "int main() { return 0; }" | %clang_host -x c - -o %t
2# RUN: %lldb -s %s --script-language lua %t 2>&1 | FileCheck %s
3b main
4breakpoint command add -s lua -o 'return false'
5run
6# CHECK: Process {{[0-9]+}} exited with status = 0
7breakpoint command add -s lua -o 'print(bacon)'
8run
9# CHECK: bacon
10# CHECK: Process {{[0-9]+}} exited with status = 0
11breakpoint command add -s lua -o "return true"
12run
13# CHECK: Process {{[0-9]+}} stopped
14breakpoint command add -s lua -o 'error("my error message")'
15run
16# CHECK: my error message
17# CHECK: Process {{[0-9]+}} stopped
18