Skip defining the tests if we don't have a compiler to build them. Otherwise we add a bunch of noise to the reported results. We still do report when we skip because the compiler doesn't have the features we need to build.
Suggested-by: Pierrick Bouvier <[email protected]> Reviewed-by: Pierrick Bouvier <[email protected]> Message-ID: <[email protected]> Signed-off-by: Alex Bennée <[email protected]> diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build index 814f2f8cd8c..5819fdf0bf3 100644 --- a/tests/tcg/meson.build +++ b/tests/tcg/meson.build @@ -499,10 +499,14 @@ foreach target, plan: tcg_tests cmd = ['sh', '-c', 'echo "' + skip_test + '" && exit 77'] endif - test(test_name, env, args: cmd, - depends: test_depends, - timeout: 120, - suite: ['tcg', 'tcg-' + target]) + # Do not add a skipped test when compiler is missing, + # though we still check all tests are correctly defined. + if has_cc + test(test_name, env, args: cmd, + depends: test_depends, + timeout: 120, + suite: ['tcg', 'tcg-' + target]) + endif added_tests += {test_name: true} endforeach endforeach -- 2.47.3
