aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite/lib/gas-defs.exp
diff options
context:
space:
mode:
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"