This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR testsuite/41913: ERROR: tcl error sourcing gcc.dg/lto/lto.exp
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis187 at us dot ibm dot com
- Date: Wed, 11 Nov 2009 07:11:35 -0800
- Subject: PATCH: PR testsuite/41913: ERROR: tcl error sourcing gcc.dg/lto/lto.exp
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
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