Disable D tests if dmd install is broken.

pull/4982/head
Jussi Pakkanen 6 years ago
parent 9291f37b65
commit a81207881b
  1. 8
      run_project_tests.py

@ -440,6 +440,14 @@ def have_d_compiler():
elif shutil.which("gdc"):
return True
elif shutil.which("dmd"):
# The Windows installer sometimes produces a DMD install
# that exists but segfaults every time the compiler is run.
# Don't know why. Don't know how to fix. Skip in this case.
cp = subprocess.run(['dmd', '--version'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
if cp.stdout == b'':
return False
return True
return False

Loading…
Cancel
Save