- 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)
llvm-svn: 173485
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()
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)