]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/maxq20/maxq20.exp
Merge commit 'upstream/2.20'
[msp430-binutils.git] / gas / testsuite / gas / maxq20 / maxq20.exp
index 6d952e9e3ed52ecb658f33c17fdebb42a25a6107..cf0c93e43c2cad0953bd2373a901d4c91c3cc5e4 100644 (file)
@@ -6,8 +6,8 @@ proc gas_64_check { } {
     global NMFLAGS
     global srcdir
 
-    catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
-    return [regexp "targets:.*maxq" $nm_help]
+    set status [gas_host_run "$NM $NMFLAGS --help" ""]
+    return [regexp "targets:.*maxq" [lindex $status 1]]
 }
 
 proc gas_32_check { } {
@@ -15,8 +15,8 @@ proc gas_32_check { } {
     global NMFLAGS
     global srcdir
 
-    catch "exec $srcdir/lib/run $NM $NMFLAGS --help" nm_help
-    return [regexp "targets:.*maxq" $nm_help]
+    set status [gas_host_run "$NM $NMFLAGS --help" ""]
+    return [regexp "targets:.*maxq" [lindex $status 1]]
 }