diff options
| author | Tamas Berghammer <tberghammer@google.com> | 2015-07-06 10:46:34 +0000 |
|---|---|---|
| committer | Tamas Berghammer <tberghammer@google.com> | 2015-07-06 10:46:34 +0000 |
| commit | 931901e56cc8f3fa44935166c94d088d0651c1be (patch) | |
| tree | 991d8ec49ed9b7d7004e487def2493eaadf3aaff /lldb/test/functionalities/stop-hook | |
| parent | b8d2e9e309d2e09a3b59184446234d18714981f5 (diff) | |
| download | bcm5719-llvm-931901e56cc8f3fa44935166c94d088d0651c1be.tar.gz bcm5719-llvm-931901e56cc8f3fa44935166c94d088d0651c1be.zip | |
Make TestStopHook* remote platform compatible
llvm-svn: 241436
Diffstat (limited to 'lldb/test/functionalities/stop-hook')
| -rw-r--r-- | lldb/test/functionalities/stop-hook/TestStopHookMechanism.py | 13 | ||||
| -rw-r--r-- | lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py | 13 |
2 files changed, 24 insertions, 2 deletions
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py index 0d1125057ef..dabfb3a63c5 100644 --- a/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py +++ b/lldb/test/functionalities/stop-hook/TestStopHookMechanism.py @@ -45,12 +45,23 @@ class StopHookMechanismTestCase(TestBase): add_prompt1 = "> " # So that the child gets torn down after the test. - self.child = pexpect.spawn('%s %s %s' % (lldbtest_config.lldbExec, self.lldbOption, exe)) + self.child = pexpect.spawn('%s %s' % (lldbtest_config.lldbExec, self.lldbOption)) child = self.child # Turn on logging for what the child sends back. if self.TraceOn(): child.logfile_read = sys.stdout + if lldb.remote_platform: + child.expect_exact(prompt) + child.sendline('platform select %s' % lldb.remote_platform.GetName()) + child.expect_exact(prompt) + child.sendline('platform connect %s' % lldb.platform_url) + child.expect_exact(prompt) + child.sendline('platform settings -w %s' % lldb.remote_platform_working_dir) + + child.expect_exact(prompt) + child.sendline('target create %s' % exe) + # Set the breakpoint, followed by the target stop-hook commands. child.expect_exact(prompt) child.sendline('breakpoint set -f main.cpp -l %d' % self.begl) diff --git a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py index 9e7d7ffae90..5070bcc15da 100644 --- a/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py +++ b/lldb/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py @@ -49,12 +49,23 @@ class StopHookForMultipleThreadsTestCase(TestBase): prompt = "(lldb) " # So that the child gets torn down after the test. - self.child = pexpect.spawn('%s %s %s' % (lldbtest_config.lldbExec, self.lldbOption, exe)) + self.child = pexpect.spawn('%s %s' % (lldbtest_config.lldbExec, self.lldbOption)) child = self.child # Turn on logging for what the child sends back. if self.TraceOn(): child.logfile_read = sys.stdout + if lldb.remote_platform: + child.expect_exact(prompt) + child.sendline('platform select %s' % lldb.remote_platform.GetName()) + child.expect_exact(prompt) + child.sendline('platform connect %s' % lldb.platform_url) + child.expect_exact(prompt) + child.sendline('platform settings -w %s' % lldb.remote_platform_working_dir) + + child.expect_exact(prompt) + child.sendline('target create %s' % exe) + # Set the breakpoint, followed by the target stop-hook commands. child.expect_exact(prompt) child.sendline('breakpoint set -f main.cpp -l %d' % self.first_stop) |

