aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/lib
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-08-11 10:22:41 +0100
committerNick Clifton <nickc@redhat.com>2016-08-11 10:22:41 +0100
commit7f6bf02d58c837d0a5f1e266058cc0e6bd6fc318 (patch)
treefafedbf8d1acfad9c6691d5173fe7368c4a85121 /ld/testsuite/lib
parentdbd8770c866ae978feb5ce9e71f64b9f7204d802 (diff)
downloadgdb-7f6bf02d58c837d0a5f1e266058cc0e6bd6fc318.zip
gdb-7f6bf02d58c837d0a5f1e266058cc0e6bd6fc318.tar.gz
gdb-7f6bf02d58c837d0a5f1e266058cc0e6bd6fc318.tar.bz2
Avoid testsuite errors about missing compilers.
PR ld/20436 * testsuite/lib/ld-lib.exp (check_gcc_plugin_enabled): When not testing remotely, check to see if target compiler is installed before trying to run it.
Diffstat (limited to 'ld/testsuite/lib')
-rw-r--r--ld/testsuite/lib/ld-lib.exp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index b3cdb70..23055be 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -1815,7 +1815,10 @@ proc check_gcc_plugin_enabled { } {
if {![info exists CC]} {
set CC [find_gcc]
}
- if { $CC == "" } {
+ if { $CC == ""} {
+ return 0
+ }
+ if { ![is_remote host] && [which $CC] == 0 } then {
return 0
}
set state [remote_exec host $CC -v]