mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Fix tests when running without stdin attached
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ class TestCore(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
system = platform.system()
|
||||
cls.target = subprocess.Popen([target_program])
|
||||
cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE)
|
||||
cls.session = frida.attach(cls.target.pid)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -18,7 +18,7 @@ class TestDiscoverer(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
system = platform.system()
|
||||
cls.target = subprocess.Popen([target_program])
|
||||
cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE)
|
||||
cls.session = frida.attach(cls.target.pid)
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -18,7 +18,7 @@ class TestTracer(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
system = platform.system()
|
||||
cls.target = subprocess.Popen([target_program])
|
||||
cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE)
|
||||
cls.session = frida.attach(cls.target.pid)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user