Currently the dg-final check "object-size" results in ERROR if the assemble failed and the object file does not exist. This patch fails the test instead. OK for trunk?
Janis
2011-06-16 Janis Johnson <jani...@codesourcery.com> * lib/scanasm.exp (object-size): Fail if object file does not exist. Index: lib/scanasm.exp =================================================================== --- lib/scanasm.exp (revision 175083) +++ lib/scanasm.exp (working copy) @@ -351,6 +351,10 @@ upvar 2 name testcase set testcase [lindex $testcase 0] set output_file "[file rootname [file tail $testcase]].o" + if ![file_on_host exists $output_file] { + fail "$testcase $output_file does not exist" + return + } set output [remote_exec host "$size" "$output_file"] set status [lindex $output 0] if { $status != 0 } {