summaryrefslogtreecommitdiffstats
path: root/lldb/lit/Driver/LocalLLDBInit.test
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-05-07 16:57:17 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-05-07 16:57:17 +0000
commit7ffd963834f8518a713e9d6dcabd5efe272076fe (patch)
tree1a71cc5b92be1f867c49665181834528c12db09e /lldb/lit/Driver/LocalLLDBInit.test
parenta9d6c32eafc645c55b07eb50698c428e14c0bffd (diff)
downloadbcm5719-llvm-7ffd963834f8518a713e9d6dcabd5efe272076fe.tar.gz
bcm5719-llvm-7ffd963834f8518a713e9d6dcabd5efe272076fe.zip
[Driver] Add command line option to allow loading local lldbinit file.
This patch adds a command line flag that allows lldb to load local lldbinit files. Differential revision: https://reviews.llvm.org/D61578 llvm-svn: 360172
Diffstat (limited to 'lldb/lit/Driver/LocalLLDBInit.test')
-rw-r--r--lldb/lit/Driver/LocalLLDBInit.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/lit/Driver/LocalLLDBInit.test b/lldb/lit/Driver/LocalLLDBInit.test
index 7d2e05c5323..a5961089413 100644
--- a/lldb/lit/Driver/LocalLLDBInit.test
+++ b/lldb/lit/Driver/LocalLLDBInit.test
@@ -1,9 +1,12 @@
# RUN: mkdir -p %t.root
+# RUN: mkdir -p %t.home
# RUN: cp %S/Inputs/.lldbinit %t.root
# RUN: cd %t.root
-# RUN: %lldb-init -o 'settings show frame-format' 2>&1 | FileCheck %s --check-prefix=INIT --check-prefix=CHECK
+# 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
-# INIT: There is a .lldbinit file in the current directory which is not being read.
+# 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: bogus
OpenPOWER on IntegriCloud