From a81207881b2ad170ab4567b7328cbde77ef83e80 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 25 Feb 2019 19:33:08 +0200 Subject: Disable D tests if dmd install is broken. --- run_project_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index c35928f..030cd51 100755 --- a/run_project_tests.py +++ b/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 -- cgit v1.1