Use better test for usable compiler in ld testsuite.
[deliverable/binutils-gdb.git] / ld / testsuite / ld-mn10300 / mn10300.exp
index 98c77cd9e9137c558c26298202eb656daa6ea2a6..b78ef55965d2d7f842bcf5075b91a7967069c5b8 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for ld-mn10300 tests
 # Expect script for ld-mn10300 tests
-#   Copyright (C) 2007-2017 Free Software Foundation, Inc.
+#   Copyright (C) 2007-2019 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -13,7 +13,8 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+# MA 02110-1301, USA.
 #
 
 if {!([istarget "am3*-*-*"]) && !([istarget "mn10300*-*-*"]) } {
 #
 
 if {!([istarget "am3*-*-*"]) && !([istarget "mn10300*-*-*"]) } {
@@ -133,7 +134,7 @@ proc i126256-test { } {
     set tmpdir tmpdir
     set testname "Seg fault whilst linking one shared library into another when relaxation is enabled."
 
     set tmpdir tmpdir
     set testname "Seg fault whilst linking one shared library into another when relaxation is enabled."
 
-    if {![is_remote host] && [which $CC] == 0} then {
+    if { ![check_compiler_available] } then {
        return
     }
 
        return
     }
 
@@ -147,12 +148,12 @@ proc i126256-test { } {
        return
     }
     
        return
     }
     
-    if { ![ld_simple_link $ld $tmpdir/i126256-1.so "-shared $tmpdir/i126256-1.o -e 0"]} {
+    if { ![ld_link $ld $tmpdir/i126256-1.so "-shared $tmpdir/i126256-1.o -e 0"]} {
         unresolved $testname
        return
     }
 
         unresolved $testname
        return
     }
 
-    if { ![ld_simple_link $ld $tmpdir/i126256-2.so "--relax -shared $tmpdir/i126256-2.o $tmpdir/i126256-1.so -e 0"]} {
+    if { ![ld_link $ld $tmpdir/i126256-2.so "--relax -shared $tmpdir/i126256-2.o $tmpdir/i126256-1.so -e 0"]} {
         fail $testname
        return
     }
         fail $testname
        return
     }
This page took 0.023585 seconds and 4 git commands to generate.