summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/stop-hook
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
commitebe51726b8578decdf66d2dc175eefccffee4074 (patch)
tree725379421aeaa50181f91701e8e2ed90d0e28f57 /lldb/test/functionalities/stop-hook
parentcf0e4f0dafe445ae2ca9228e41767944329f30c4 (diff)
downloadbcm5719-llvm-ebe51726b8578decdf66d2dc175eefccffee4074.tar.gz
bcm5719-llvm-ebe51726b8578decdf66d2dc175eefccffee4074.zip
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. llvm-svn: 141384
Diffstat (limited to 'lldb/test/functionalities/stop-hook')
-rw-r--r--lldb/test/functionalities/stop-hook/TestStopHookMechanism.py2
-rw-r--r--lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
index d04aaa88213..466ce5a1e4f 100644
--- a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
+++ b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py
@@ -40,7 +40,7 @@ class StopHookMechanismTestCase(TestBase):
add_prompt1 = "\r\n> "
# So that the child gets torn down after the test.
- self.child = pexpect.spawn('%s %s' % (self.lldbHere, exe))
+ self.child = pexpect.spawn('%s %s %s' % (self.lldbHere, self.lldbOption, exe))
child = self.child
# Turn on logging for what the child sends back.
if self.TraceOn():
diff --git a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
index bd70119d9bc..8aad81c9b4f 100644
--- a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
+++ b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
@@ -43,7 +43,7 @@ class StopHookForMultipleThreadsTestCase(TestBase):
prompt = "(lldb) "
# So that the child gets torn down after the test.
- self.child = pexpect.spawn('%s %s' % (self.lldbHere, exe))
+ self.child = pexpect.spawn('%s %s %s' % (self.lldbHere, self.lldbOption, exe))
child = self.child
# Turn on logging for what the child sends back.
if self.TraceOn():
OpenPOWER on IntegriCloud