* ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
authorDave Korn <dave.korn@artimi.com>
Wed, 20 Oct 2010 14:40:31 +0000 (14:40 +0000)
committerDave Korn <dave.korn@artimi.com>
Wed, 20 Oct 2010 14:40:31 +0000 (14:40 +0000)
no suitable target compiler is available.

ld/testsuite/ChangeLog
ld/testsuite/ld-plugin/plugin.exp

index 249d8524724746f7005c1ed22f2f89bb1f1449d3..6dfa6f1ad4d22136ff4c7a672b04539f83f865b5 100644 (file)
@@ -1,3 +1,8 @@
+2010-10-20  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * ld-plugin/plugin.exp: Mark tests UNSUPPORTED, not UNRESOLVED, if
+       no suitable target compiler is available.
+
 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
 
        * ld-pe/pe-run2.exp: Prefix --enable-auto-import by -Wl.
index 416159ac002d9e57b13093a7895ad63280f22b6f..2e63ca02645eda2dcbe94b8bdefe880d08b8b8b5 100644 (file)
@@ -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