From 3ddd672791a3e2cf6393f7aa31fc35ec4a085282 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Thu, 22 Dec 2016 21:34:59 +0100 Subject: [PATCH] Fix tests when running without stdin attached --- tests/test_core.py | 2 +- tests/test_discoverer.py | 2 +- tests/test_tracer.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_core.py b/tests/test_core.py index cd18d69..15bad57 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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 diff --git a/tests/test_discoverer.py b/tests/test_discoverer.py index 7d6ef33..2f85654 100644 --- a/tests/test_discoverer.py +++ b/tests/test_discoverer.py @@ -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 diff --git a/tests/test_tracer.py b/tests/test_tracer.py index 26f9d9e..5d1fd37 100644 --- a/tests/test_tracer.py +++ b/tests/test_tracer.py @@ -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