From 408a48b67f43adb6ddabc8cfd67eed9d24e39158 Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Fri, 15 Oct 2010 20:43:28 +0100 Subject: [PATCH] Clean up ld-plugin testsuite noise. ld/testsuite/ChangeLog: * ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if no suitable target compiler is available. --- ld/testsuite/ld-plugin/plugin.exp | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ld/testsuite/ld-plugin/plugin.exp b/ld/testsuite/ld-plugin/plugin.exp index 416159a..0a556e2 100644 --- a/ld/testsuite/ld-plugin/plugin.exp +++ b/ld/testsuite/ld-plugin/plugin.exp @@ -26,9 +26,11 @@ if ![check_plugin_api_available] { # And a compiler to be available. set can_compile 1 +set failure_kind "unresolved" if { [which $CC] == 0 } { # Don't fail immediately, set can_compile 0 + set failure_kind "unsupported" } pass "plugin API enabled" @@ -154,11 +156,11 @@ set plugin_extra_elf_tests [list \ if { !$can_compile || $failed_compile } { foreach testitem $plugin_tests { - unresolved [lindex $testitem 0] + $failure_kind [lindex $testitem 0] } if { [is_elf_format] } { foreach testitem $plugin_extra_elf_tests { - unresolved [lindex $testitem 0] + $failure_kind [lindex $testitem 0] } } return @@ -172,7 +174,7 @@ if { [is_elf_format] } { if ![ar_simple_create $ar "" "tmpdir/libtext.a" "tmpdir/text.o"] { foreach testitem $plugin_lib_tests { - unresolved [lindex $testitem 0] + $failure_kind [lindex $testitem 0] } } else { run_ld_link_tests $plugin_lib_tests