Skip to content

Commit a418035

Browse files
committed
More test stability
1 parent e3c6dee commit a418035

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_syswow.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import pytest
1+
import time
22
import textwrap
33

4+
import pytest
5+
46
import windows
57
import windows.generated_def as gdef
68
import windows.native_exec.simple_x86 as x86
@@ -108,7 +110,6 @@ def loop_query_ppid(proc, target_ppid):
108110
assert proc.read_memory(i.BaseAddress, 0x1000)
109111
# assert False, "LOL"
110112
except Exception as e:
111-
# import traceback; traceback.print(
112113
threads_error[windows.current_thread.tid] = e
113114
raise
114115
return True
@@ -122,6 +123,7 @@ def test_syswow_call_multithread():
122123
# Old version of PFW did not handled that thus generating invalid result / crash
123124
for tnb in range(10):
124125
new_proc = windows.test.pop_proc_64()
126+
time.sleep(0.1)
125127
new_proc_pid = new_proc.ppid
126128
all_procs.append(new_proc)
127129
t = threading.Thread(target=loop_query_ppid, args=(new_proc, new_proc_pid))

0 commit comments

Comments
 (0)