1 # UNSUPPORTED: system-windows
3 # RUN: %lldb -o 'script quit' | FileCheck %s --check-prefix SILENT
4 # RUN: %lldb -o 'script quit()' | FileCheck %s --check-prefix SILENT
6 # RUN: %lldb -o 'script exit' | FileCheck %s --check-prefix SILENT
7 # RUN: %lldb -o 'script exit()' | FileCheck %s --check-prefix SILENT
9 # RUN: echo -e 'script\nquit' > %t
10 # RUN: cat %t | %lldb | FileCheck %s --check-prefix SILENT
12 # RUN: echo -e 'script\nexit' > %t
13 # RUN: cat %t | %lldb | FileCheck %s --check-prefix SILENT
15 # SILENT-NOT: Script exited with code
17 # RUN: %lldb -o 'script quit(100+23)' | FileCheck %s --check-prefix VERBOSE
18 # RUN: %lldb -o 'script exit(100+23)' | FileCheck %s --check-prefix VERBOSE
20 # RUN: echo -e 'script\nexit(100+23)' > %t
21 # RUN: cat %t | %lldb | FileCheck %s --check-prefix VERBOSE
23 # RUN: echo -e 'script\nquit(100+23)' > %t
24 # RUN: cat %t | %lldb | FileCheck %s --check-prefix VERBOSE
26 # VERBOSE: Script exited with code 123
28 # RUN: %lldb -o 'script print(locals())' | FileCheck %s --check-prefix LOCALS
29 # LOCALS: __builtins__