Some comments about why we need multiprocess in test_pe

This commit is contained in:
lazymio
2021-10-12 10:54:44 +02:00
committed by GitHub
parent beb54529e0
commit afaf708807
+7 -1
View File
@@ -18,6 +18,12 @@ from qiling.os.windows.utils import *
from qiling.os.mapper import QlFsMappedObject
import multiprocess as mb
# On Windows, the CPython GC is too conservative and may hold too
# many Unicorn objects (nearly 16GB) until free-ing them which may
# cause failure during tests.
#
# Use subprocess to make sure resources are free-ed when the subprocess
# is killed.
class QLWinSingleTest:
def __init__(self, test):
@@ -39,7 +45,7 @@ class QLWinSingleTest:
if "exception" not in results:
return results['result']
else:
raise results['exceptions']
raise results['exception']
class TestOut: