diff options
Diffstat (limited to 'lldb/test/python_api/hello_world/TestHelloWorld.py')
| -rw-r--r-- | lldb/test/python_api/hello_world/TestHelloWorld.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/python_api/hello_world/TestHelloWorld.py b/lldb/test/python_api/hello_world/TestHelloWorld.py index 0fcfacb65f0..d4fabbbb25d 100644 --- a/lldb/test/python_api/hello_world/TestHelloWorld.py +++ b/lldb/test/python_api/hello_world/TestHelloWorld.py @@ -3,6 +3,7 @@ import os, sys, time import unittest2 import lldb +import time from lldbtest import * class HelloWorldTestCase(TestBase): @@ -139,6 +140,9 @@ class HelloWorldTestCase(TestBase): popen = self.spawnSubprocess(self.exe, ["abc", "xyz"]) self.addTearDownHook(self.cleanupSubprocesses) + # Give the subprocess time to start and wait for user input + time.sleep(0.25) + listener = lldb.SBListener("my.attach.listener") error = lldb.SBError() process = target.AttachToProcessWithID(listener, popen.pid, error) @@ -161,6 +165,9 @@ class HelloWorldTestCase(TestBase): popen = self.spawnSubprocess(self.exe, ["abc", "xyz"]) self.addTearDownHook(self.cleanupSubprocesses) + # Give the subprocess time to start and wait for user input + time.sleep(0.25) + listener = lldb.SBListener("my.attach.listener") error = lldb.SBError() # Pass 'False' since we don't want to wait for new instance of "hello_world" to be launched. |

