aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/lib/gas-defs.exp
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-01-08 08:37:13 +0000
committerNick Clifton <nickc@redhat.com>2008-01-08 08:37:13 +0000
commit9396508db2edbe0bf16cab534c07037b112908e4 (patch)
tree4305192e0c6d59eca2864db1f4487c19e7422afd /gas/testsuite/lib/gas-defs.exp
parent2ae6c22fab94119e2c002d851dd55e70f1c576d8 (diff)
downloadbinutils-9396508db2edbe0bf16cab534c07037b112908e4.zip
binutils-9396508db2edbe0bf16cab534c07037b112908e4.tar.gz
binutils-9396508db2edbe0bf16cab534c07037b112908e4.tar.bz2
PR gas/5322
* lib/gas-defs.exp (gas_host_run): Add fourth argument to regsub command.
Diffstat (limited to 'gas/testsuite/lib/gas-defs.exp')
-rw-r--r--gas/testsuite/lib/gas-defs.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/testsuite/lib/gas-defs.exp b/gas/testsuite/lib/gas-defs.exp
index 112bb52..af9f565 100644
--- a/gas/testsuite/lib/gas-defs.exp
+++ b/gas/testsuite/lib/gas-defs.exp
@@ -63,7 +63,8 @@ proc gas_host_run { cmd redir } {
set command "$cmd 2>gas.stderr"
set return_contents_of "gas.stderr"
} elseif [regexp ">&.*" $redir] then {
- set output_file [regsub ">&" $redir ""]
+ # See PR 5322 for why the following line is used.
+ regsub ">&" $redir "" output_file
set command "$cmd 2>&1"
} elseif [regexp "2>.*" $redir] then {
set output_file "gas.out"