Skip to content

Commit 9096693

Browse files
committed
Improve pipe tests stability / error trigger
1 parent 4056162 commit 9096693

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_pipe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ def test_ipc_pipe(proc32_64):
3333

3434
@python_injection
3535
def test_pipe_echo_server(proc32_64):
36+
# Verify that injection / load of Pfw in remote works with a first safe stub
37+
proc32_64.execute_python("import windows")
3638
t = proc32_64.execute_python_unsafe(rcode_test_echo_pipe.format(pipe=PIPE_NAME))
3739
time.sleep(0.5)
3840
assert not t.is_exit
@@ -45,6 +47,8 @@ def test_pipe_echo_server(proc32_64):
4547

4648
@python_injection
4749
def test_pipe_recv_object(proc32_64):
50+
# Verify that injection / load of Pfw in remote works with a first safe stub
51+
proc32_64.execute_python("import windows")
4852
# not the good way to do the exchange (race possible)
4953
# Just for the sake of the test
5054
proc32_64.execute_python_unsafe(rcode_test_ipc_pipe.format(pipe=PIPE_NAME))

0 commit comments

Comments
 (0)