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"
return
}
}
+ } else {
+ if { $opts(error) != "" || $opts(error-output) != "" } {
+ fail $testname
+ }
}
if { $program == "" } {
# run_list_test NAME (optional): OPTS TESTNAME
#
-# Assemble the file "NAME.d" with command line options OPTS and
-# compare the assembler standard error output against thee regular
+# Assemble the file "NAME.s" with command line options OPTS and
+# compare the assembler standard error output against the regular
# expressions given in the file "NAME.l". If TESTNAME is provided,
# it will be used as the name of the test.