Skip ld tests if no compiler installed.

Fixes https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950020
pull/6542/head
Jussi Pakkanen 5 years ago committed by Dylan Baker
parent 32240d4276
commit 15ab30383e
  1. 2
      run_unittests.py

@ -6013,6 +6013,7 @@ c = ['{0}']
def test_ld_environment_variable_lld(self):
self._check_ld('ld.lld', 'lld', 'c', 'lld')
@skipIfNoExecutable('rustc')
def test_ld_environment_variable_rust(self):
self._check_ld('ld.gold', 'gold', 'rust', 'GNU ld.gold')
@ -6025,6 +6026,7 @@ c = ['{0}']
def test_ld_environment_variable_objcpp(self):
self._check_ld('ld.gold', 'gold', 'objcpp', 'GNU ld.gold')
@skipIfNoExecutable('gfortran')
def test_ld_environment_variable_fortran(self):
self._check_ld('ld.gold', 'gold', 'fortran', 'GNU ld.gold')

Loading…
Cancel
Save