Add script to build and test GDB using enable-targets=all.
[deliverable/binutils-gdb.git] / gas / testsuite / gas / cfi / cfi.exp
index b396f9e85235e001853f1a06b2a5d684b642e9f0..593c8ff4e6b05c10abbe3e369f4e2cc547004db2 100644 (file)
@@ -28,11 +28,10 @@ if [istarget "x86_64-*"] then {
 } elseif { [istarget sparc*-*-*] } then {
     global NM
     global NMFLAGS
-    global srcdir
 
-    catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
+    set nm_status [gas_host_run "$NM $NMFLAGS --help" ""]
     run_dump_test "cfi-sparc-1"
-    if { [regexp "elf64\[_-\]sparc" $nm_help] } then {
+    if { [regexp "elf64\[_-\]sparc" [lindex $nm_status 1]] } then {
        run_dump_test "cfi-sparc64-1"
     }
 
This page took 0.023696 seconds and 4 git commands to generate.