Skip if a suitable D alternative is not found.

pull/4611/head
Jussi Pakkanen 6 years ago
parent f1116bc16a
commit 03311e6d8c
  1. 4
      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')

Loading…
Cancel
Save