aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 4810264..f1b2249 100755
--- a/run_unittests.py
+++ b/run_unittests.py
@@ -4816,7 +4816,9 @@ class NativeFileTests(BasePlatformTests):
return 'gdc', 'gdc'
else:
raise unittest.SkipTest('No alternative dlang compiler found.')
- return 'dmd', 'dmd'
+ if shutil.which('dmd'):
+ return 'dmd', 'dmd'
+ raise unittest.SkipTest('No alternative dlang compiler found.')
self.helper_for_compiler('d', cb)
@skip_if_not_language('cs')