mtest: use ProactorEventLoop

This is needed to use asyncio with pipes and processes.
pull/7836/head
Paolo Bonzini 4 years ago
parent cdbb0255a7
commit 09253c1c70
  1. 4
      mesonbuild/mtest.py

@ -1329,6 +1329,10 @@ def run(options: argparse.Namespace) -> int:
if options.wrapper:
check_bin = options.wrapper[0]
if sys.platform == 'win32':
loop = asyncio.ProactorEventLoop()
asyncio.set_event_loop(loop)
if check_bin is not None:
exe = ExternalProgram(check_bin, silent=True)
if not exe.found():

Loading…
Cancel
Save