From ea76c4f229bdcbb955465bdc3f8a081c8dbd7ee8 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Fri, 22 Apr 2011 21:47:07 +0000 Subject: Make test_connect_remote() more robust by waiting on the server ready message before issuing the 'process connect ...' command. test_comand_regex(): assign the spawned child to self.child so it gets automatically shutdown during TestBase.tearDown(self). llvm-svn: 130015 --- lldb/test/command_regex/TestCommandRegex.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lldb/test/command_regex/TestCommandRegex.py') diff --git a/lldb/test/command_regex/TestCommandRegex.py b/lldb/test/command_regex/TestCommandRegex.py index fdb5246d1f1..a11077d116c 100644 --- a/lldb/test/command_regex/TestCommandRegex.py +++ b/lldb/test/command_regex/TestCommandRegex.py @@ -22,6 +22,8 @@ class CommandRegexTestCase(TestBase): # Turn on logging for what the child sends back. if self.TraceOn(): child.logfile_read = sys.stdout + # So that the spawned lldb session gets shutdown durng teardown. + self.child = child # Substitute 'Help!' with 'help' using the 'commands regex' mechanism. child.expect(prompt) @@ -33,7 +35,7 @@ class CommandRegexTestCase(TestBase): # Help! child.sendline('Help!') # If we see the familiar 'help' output, the test is done. - child.expect('The following is a list of built-in, permanent debugger commands:') + child.expect('The following is a list of built-in, permanent debugger commands:') if __name__ == '__main__': import atexit -- cgit v1.2.3