PATCH for testsuite driver
Mark P. Mitchell
mark@codesourcery.com
Thu Sep 30 23:58:00 GMT 1999
At some point, the testsuite started assuming that objdump was
available. This resulted in the following on an IRIX6 box:
ERROR: tcl error sourcing /users/mitchell/dev/egcs/gcc/testsuite/gcc.c-torture/compile/compile.exp.
ERROR: couldn't execute "objdump": no such file or directory
while executing
"exec $objdump_name --file-headers objfmtst.o "
(procedure "gcc_target_object_format" line 14)
invoked from within
"gcc_target_object_format"
("eval" body line 5)
invoked from within
...
I checked in this patch.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
Fri Oct 1 00:53:17 1999 Mark P. Mitchell <mark@codesourcery.com>
* lib/file-format.exp (gcc_target_object_format): Don't
crash if objdump is unavailable.
Index: testsuite/lib/file-format.exp
===================================================================
RCS file: /cvs/egcs/egcs/gcc/testsuite/lib/file-format.exp,v
retrieving revision 1.2
diff -c -p -r1.2 file-format.exp
*** file-format.exp 1999/09/04 15:09:15 1.2
--- file-format.exp 1999/10/01 06:51:39
*************** proc gcc_target_object_format { } {
*** 35,42 ****
gcc_target_compile objfmtst.c objfmtst.o object ""
! set output [exec $objdump_name --file-headers objfmtst.o ]
!
file delete objfmtst.o
if ![ regexp "file format (.*)arch" $output dummy objformat ] {
--- 35,44 ----
gcc_target_compile objfmtst.c objfmtst.o object ""
! catch {
! set output [exec $objdump_name --file-headers objfmtst.o ]
! } output
!
file delete objfmtst.o
if ![ regexp "file format (.*)arch" $output dummy objformat ] {
More information about the Gcc-patches
mailing list