Add workaround to improve test-suite reliability

Not all of our injectors handle injection into processes that haven't
finished initializing, so for now delay a little before attaching.
This commit is contained in:
Ole André Vadla Ravnås
2019-05-07 01:18:37 +00:00
parent 7d5c36e358
commit 74f84d302a
+2
View File
@@ -20,6 +20,8 @@ class TestRpc(unittest.TestCase):
def setUp(cls):
system = platform.system()
cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE)
# TODO: improve injectors to handle injection into a process that hasn't yet finished initializing
time.sleep(0.05)
cls.session = frida.attach(cls.target.pid)
@classmethod