public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite] dg-final object-size: fail if file does not exist
@ 2011-06-16 17:07 Janis Johnson
  2011-06-16 17:26 ` Joseph S. Myers
  2011-06-16 20:38 ` Mike Stump
  0 siblings, 2 replies; 7+ messages in thread
From: Janis Johnson @ 2011-06-16 17:07 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 177 bytes --]

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

[-- Attachment #2: gcc-20110616-1 --]
[-- Type: text/plain, Size: 669 bytes --]

2011-06-16  Janis Johnson  <janisjo@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 } {

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-18 14:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 17:07 [testsuite] dg-final object-size: fail if file does not exist Janis Johnson
2011-06-16 17:26 ` Joseph S. Myers
2011-06-16 23:12   ` Janis Johnson
2011-06-16 23:55     ` Joseph S. Myers
2011-06-17  1:09       ` Janis Johnson
2011-06-18 14:50         ` Mike Stump
2011-06-16 20:38 ` Mike Stump

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).