aboutsummaryrefslogtreecommitdiff
path: root/test/lldbtest.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-07 19:21:09 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-07 19:21:09 +0000
commit7d7f447af7fba3eae442ab99c18f5ae532886099 (patch)
treebafdc64beb0e143dc8cc0291652acd0e34b2ff86 /test/lldbtest.py
parent61aca5dd78f07de66e997d41af521ab9d8c16b89 (diff)
downloadlldb-7d7f447af7fba3eae442ab99c18f5ae532886099.tar.gz
If we spawn an lldb process for test (via pexpect), do not load the init file unless told otherwise.
Set up self.lldbOption to be "--no-lldbibit" unless env variable NO_LLDBIBIT is defined and equals "NO". Also add "-nx" to gdb spawned. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@141384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lldbtest.py')
-rw-r--r--test/lldbtest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lldbtest.py b/test/lldbtest.py
index cbddc289a..79923cb2a 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -484,6 +484,12 @@ class Base(unittest2.TestCase):
self.lldbHere = os.environ["LLDB_HERE"]
else:
self.lldbHere = None
+ # If we spawn an lldb process for test (via pexpect), do not load the
+ # init file unless told otherwise.
+ if "NO_LLDBINIT" in os.environ and "NO" == os.environ["NO_LLDBINIT"]:
+ self.lldbOption = ""
+ else:
+ self.lldbOption = "--no-lldbinit"
# Assign the test method name to self.testMethodName.
#