xref: /llvm-project/lldb/test/Shell/Commands/command-source.test (revision d875838e8b45cb0da5070298d0c1a2d1ee78ce7e)
1# Check that stop command source on error.
2
3# RUN: not %lldb -x -b -o "command source -e 1 %s" 2>&1 | FileCheck %s --check-prefix STOP
4# RUN: %lldb -x -b -o "command source -e 0 %s" 2>&1 | FileCheck %s --check-prefix CONTINUE
5# RUN: not %lldb -x -b -o 'settings set interpreter.stop-command-source-on-error true' -o "command source %s" 2>&1 | FileCheck %s --check-prefix STOP
6# RUN: %lldb -x -b -o 'settings set interpreter.stop-command-source-on-error false' -o "command source %s" 2>&1 | FileCheck %s --check-prefix CONTINUE
7
8bogus
9expression 10+1
10
11# CONTINUE: $0 = 11
12# STOP-NOT: $0 = 11
13