[Lldb-commits] [lldb] r173485 - in /lldb/trunk/test: expression_command/test/TestExprs.py lldbtest.py
Daniel Malea
daniel.malea at intel.com
Fri Jan 25 12:38:50 PST 2013
Author: dmalea
Date: Fri Jan 25 14:38:49 2013
New Revision: 173485
URL: http://llvm.org/viewvc/llvm-project?rev=173485&view=rev
Log:
Disable confirmation prompts for testing
- set auto-confirm to false when running TestExprs (avoid hang when using API)
- set prompt-on-quit to false in test helper (avoid timeout when using lldb CLI)
Modified:
lldb/trunk/test/expression_command/test/TestExprs.py
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/expression_command/test/TestExprs.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/expression_command/test/TestExprs.py?rev=173485&r1=173484&r2=173485&view=diff
==============================================================================
--- lldb/trunk/test/expression_command/test/TestExprs.py (original)
+++ lldb/trunk/test/expression_command/test/TestExprs.py Fri Jan 25 14:38:49 2013
@@ -28,6 +28,11 @@
self.line = line_number('main.cpp',
'// Please test many expressions while stopped at this line:')
+ # Disable confirmation prompt to avoid infinite wait
+ self.runCmd("settings set auto-confirm true")
+ self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
+
+
def test_many_expr_commands(self):
"""These basic expression commands should work as expected."""
self.buildDefault()
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=173485&r1=173484&r2=173485&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Fri Jan 25 14:38:49 2013
@@ -733,6 +733,7 @@
if self.child_in_script_interpreter:
self.child.sendline('quit()')
self.child.expect_exact(self.child_prompt)
+ self.child.sendline('settings set interpreter.prompt-on-quit false')
self.child.sendline('quit')
try:
self.child.expect(pexpect.EOF)
More information about the lldb-commits
mailing list