2019-05-19 09:27:52 +00:00
|
|
|
# REQUIRES: python
|
2020-01-22 16:53:09 -08:00
|
|
|
# UNSUPPORTED: lldb-repro
|
|
|
|
|
#
|
2019-05-06 20:45:31 +00:00
|
|
|
# RUN: mkdir -p %t.root
|
2019-05-07 16:57:17 +00:00
|
|
|
# RUN: mkdir -p %t.home
|
2019-05-06 20:45:31 +00:00
|
|
|
# RUN: cp %S/Inputs/.lldbinit %t.root
|
2019-05-08 01:23:47 +00:00
|
|
|
# RUN: cp %S/Inputs/syntax_error.py %t.root
|
2019-05-06 20:45:31 +00:00
|
|
|
# RUN: cd %t.root
|
2019-05-07 16:57:17 +00:00
|
|
|
# RUN: env HOME=%t.home %lldb-init -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=WARNINIT --check-prefix=CHECK
|
|
|
|
|
# RUN: env HOME=%t.home %lldb-init -local-lldbinit -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=ALLOWINIT --check-prefix=NOINIT
|
2019-05-06 20:45:31 +00:00
|
|
|
# RUN: %lldb -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=NOINIT --check-prefix=CHECK
|
|
|
|
|
|
2019-05-07 16:57:17 +00:00
|
|
|
# WARNINIT: There is a .lldbinit file in the current directory which is not being read.
|
2019-05-06 20:45:31 +00:00
|
|
|
# NOINIT-NOT: There is a .lldbinit file in the current directory which is not being read.
|
|
|
|
|
# CHECK-NOT: bogus
|
2019-05-08 01:23:47 +00:00
|
|
|
# ALLOWINIT: name 'prlnt' is not defined
|
2019-05-07 16:57:17 +00:00
|
|
|
# ALLOWINIT: bogus
|