summaryrefslogtreecommitdiffstats
path: root/lldb/test/Shell/Driver/LocalLLDBInit.test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/Driver/LocalLLDBInit.test')
-rw-r--r--lldb/test/Shell/Driver/LocalLLDBInit.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/lldb/test/Shell/Driver/LocalLLDBInit.test b/lldb/test/Shell/Driver/LocalLLDBInit.test
new file mode 100644
index 00000000000..69b7781415a
--- /dev/null
+++ b/lldb/test/Shell/Driver/LocalLLDBInit.test
@@ -0,0 +1,15 @@
+# REQUIRES: python
+# RUN: mkdir -p %t.root
+# RUN: mkdir -p %t.home
+# RUN: cp %S/Inputs/.lldbinit %t.root
+# RUN: cp %S/Inputs/syntax_error.py %t.root
+# RUN: cd %t.root
+# 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
+# RUN: %lldb -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=NOINIT --check-prefix=CHECK
+
+# WARNINIT: There is a .lldbinit file in the current directory which is not being read.
+# NOINIT-NOT: There is a .lldbinit file in the current directory which is not being read.
+# CHECK-NOT: bogus
+# ALLOWINIT: name 'prlnt' is not defined
+# ALLOWINIT: bogus
OpenPOWER on IntegriCloud