xref: /llvm-project/lldb/test/Shell/Commands/command-source.test (revision d875838e8b45cb0da5070298d0c1a2d1ee78ce7e)
187aa9c9eSJonas Devlieghere# Check that stop command source on error.
287aa9c9eSJonas Devlieghere
361d5b0e6SJonas Devlieghere# RUN: not %lldb -x -b -o "command source -e 1 %s" 2>&1 | FileCheck %s --check-prefix STOP
487aa9c9eSJonas Devlieghere# RUN: %lldb -x -b -o "command source -e 0 %s" 2>&1 | FileCheck %s --check-prefix CONTINUE
561d5b0e6SJonas Devlieghere# 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
687aa9c9eSJonas Devlieghere# 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
787aa9c9eSJonas Devlieghere
887aa9c9eSJonas Devliegherebogus
9*d875838eSDave Leeexpression 10+1
1087aa9c9eSJonas Devlieghere
1187aa9c9eSJonas Devlieghere# CONTINUE: $0 = 11
1287aa9c9eSJonas Devlieghere# STOP-NOT: $0 = 11
13