This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR testsuite/41913: ERROR: tcl error sourcing gcc.dg/lto/lto.exp


Hi,

scan-symbol should check if target exists before running nm on it. OK
for trunk?

Thanks.


H.J.
---
2009-11-11  H.J. Lu  <hongjiu.lu@intel.com>

	PR testsuite/41913
	* lib/lto.exp (scan-symbol): Properly check if target exist.

--- gcc/testsuite/lib/lto.exp.foo	2009-10-13 11:16:55.000000000 -0700
+++ gcc/testsuite/lib/lto.exp	2009-11-11 06:59:43.000000000 -0800
@@ -493,7 +493,7 @@ proc scan-symbol { args } {
 	verbose -log "nm is $nm"
     }
 
-    set output_file $execname
+    set output_file "[glob -nocomplain $execname]"
     if { $output_file == "" } {
 	fail "scan-symbol $args: dump file does not exist"
 	return


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]