bfd:
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / binutils.exp
index 52ac03b2f4b7a811a26f86e0dfcf11034b396314..ba7ac36862c2571ad7014f157c8160530b2f3bcf 100644 (file)
@@ -62,24 +62,24 @@ proc binutils_test { prog_name ld_options test } {
     }
 
     send_log "$READELF -l --wide tmpdir/$test > tmpdir/$test.exp\n"
-    catch "exec $READELF -l --wide tmpdir/$test > tmpdir/$test.exp" got
-    if ![string match "" $got] then {
+    set got [remote_exec host "$READELF -l --wide tmpdir/$test" "" "/dev/null" "tmpdir/$test.exp"]
+    if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
        send_log "$got\n"
        unresolved "$test_name"
        return
     }
 
     send_log "$prog tmpdir/$test\n"
-    catch "exec $prog tmpdir/$test" got
-    if ![string match "" $got] then {
+    set got [remote_exec host "$prog tmpdir/$test"]
+    if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
        send_log "$got\n"
        fail "$test_name"
        return
     }
 
     send_log "$READELF -l --wide tmpdir/$test > tmpdir/$test.out\n"
-    catch "exec $READELF -l --wide tmpdir/$test > tmpdir/$test.out" got
-    if ![string match "" $got] then {
+    set got [remote_exec host "$READELF -l --wide tmpdir/$test" "" "/dev/null" "tmpdir/$test.out"]
+    if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
        send_log "$got\n"
        unresolved "$test_name"
        return
This page took 0.046556 seconds and 4 git commands to generate.