Skip to content

Commit

Permalink
Skip ld tests if no compiler installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane authored and dcbaker committed Jan 29, 2020
1 parent 32240d4 commit 15ab303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6013,6 +6013,7 @@ def test_ld_environment_variable_gold(self):
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')

Expand All @@ -6025,6 +6026,7 @@ def test_ld_environment_variable_objc(self):
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')

Expand Down

0 comments on commit 15ab303

Please sign in to comment.