xref: /llvm-project/lldb/test/Shell/Settings/TestStopCommandSourceOnError.test (revision d875838e8b45cb0da5070298d0c1a2d1ee78ce7e)
187aa9c9eSJonas Devlieghere# Modifying the interpreter settings is tricky because they don't take effect
287aa9c9eSJonas Devlieghere# until we create a new command interpreter, which should be merely an
387aa9c9eSJonas Devlieghere# implementation detail. This leads to confusing and unexpected scenarios.
487aa9c9eSJonas Devlieghere#
587aa9c9eSJonas Devlieghere# Below are a few scenarios that we should fix.
687aa9c9eSJonas Devlieghere
787aa9c9eSJonas Devlieghere# CONTINUE: 123456789
887aa9c9eSJonas Devlieghere# STOP-NOT: 111111111
987aa9c9eSJonas Devlieghere# STOP-NOT: 123456789
1087aa9c9eSJonas Devlieghere
1187aa9c9eSJonas Devlieghere# FIXME: Should stop
1287aa9c9eSJonas Devlieghere# RUN: %lldb -b -o 'settings set interpreter.stop-command-source-on-error false' -s %S/Inputs/StopCommandSource.in | FileCheck %s --check-prefix CONTINUE
1387aa9c9eSJonas Devlieghere
1487aa9c9eSJonas Devlieghere# FIXME: Should continue
15*d875838eSDave Lee# RUN: not %lldb -b -s %S/Inputs/DontStopCommandSource.in -o 'bogus' -o 'expression 111100000 + 11111' | FileCheck %s --check-prefix STOP
1687aa9c9eSJonas Devlieghere
1787aa9c9eSJonas Devlieghere# FIXME: Should continue
18*d875838eSDave Lee# RUN: not %lldb -b -o 'settings set interpreter.stop-command-source-on-error false' -o 'bogus' -o 'expression 123400000 + 56789'  | FileCheck %s --check-prefix STOP
1987aa9c9eSJonas Devlieghere
2087aa9c9eSJonas Devlieghere# FIXME: Should continue
2161d5b0e6SJonas Devlieghere# RUN: not %lldb -b -s %S/Inputs/DontStopCommandSource.in | FileCheck %s --check-prefix STOP
2287aa9c9eSJonas Devlieghere
2387aa9c9eSJonas Devlieghere# FIXME: Should continue
2461d5b0e6SJonas Devlieghere# RUN: not %lldb -b -o 'settings set interpreter.stop-command-source-on-error true' -s %S/Inputs/DontStopCommandSource.in | FileCheck %s --check-prefix STOP
25