From c5a0dfcfa87eb55c0c75d4c7eaa2ee3555d1f7ee Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Wed, 31 Jul 2019 22:51:27 -0400 Subject: [PATCH] tests/common/186: skip some due to PGI link failure stderr=0 --- test cases/common/185 has link arg/meson.build | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test cases/common/185 has link arg/meson.build b/test cases/common/185 has link arg/meson.build index d6afc741a..6bfbd59e7 100644 --- a/test cases/common/185 has link arg/meson.build +++ b/test cases/common/185 has link arg/meson.build @@ -14,9 +14,10 @@ else endif assert(cc.has_link_argument(is_arg), 'Arg that should have worked does not work.') -assert(not cc.has_link_argument(isnt_arg), 'Arg that should be broken is not.') - assert(cpp.has_link_argument(is_arg), 'Arg that should have worked does not work.') + +if cc.get_id() != 'pgi' +assert(not cc.has_link_argument(isnt_arg), 'Arg that should be broken is not.') assert(not cpp.has_link_argument(isnt_arg), 'Arg that should be broken is not.') assert(cc.get_supported_link_arguments([is_arg, isnt_arg, useless]) == [is_arg, useless], 'Arg filtering returned different result.') @@ -38,7 +39,9 @@ assert(l1.get(0) == is_arg, 'First supported returned wrong argument.') assert(l2.length() == 0, 'First supported did not return empty array.') assert(not cc.has_multi_link_arguments([isnt_arg, is_arg]), 'Arg that should be broken is not.') -assert(cc.has_multi_link_arguments(is_arg), 'Arg that should have worked does not work.') -assert(cc.has_multi_link_arguments([useless, is_arg]), 'Arg that should have worked does not work.') assert(not cc.has_link_argument('-Wl,-z,nodelete42'), 'Did not detect wrong -z linker argument') +endif + +assert(cc.has_multi_link_arguments(is_arg), 'Arg that should have worked does not work.') +assert(cc.has_multi_link_arguments([useless, is_arg]), 'Arg that should have worked does not work.')