Skip to content

Commit

Permalink
Skip more tests if pkg-config is missing
Browse files Browse the repository at this point in the history
meson.build:13:2: ERROR: Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
  • Loading branch information
jbeich authored and jpakkane committed Oct 8, 2019
1 parent f060a41 commit 217036f
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 @@ -5643,6 +5643,7 @@ def test_compiler_libs_static_dedup(self):
# Assert that
self.assertEqual(len(line.split(lib)), 2, msg=(lib, line))

@skipIfNoPkgconfig
def test_noncross_options(self):
# C_std defined in project options must be in effect also when native compiling.
testdir = os.path.join(self.unit_test_dir, '51 noncross options')
Expand All @@ -5665,6 +5666,7 @@ def test_identity_cross(self):
# TODO should someday be explicit about build platform only here
self.init(testdir, override_envvars=env)

@skipIfNoPkgconfig
def test_static_link(self):
if is_cygwin():
raise unittest.SkipTest("Cygwin doesn't support LD_LIBRARY_PATH.")
Expand Down

0 comments on commit 217036f

Please sign in to comment.