PATCH to testsuite/lib/old-dejagnu.exp

Gabriel Dos Reis gdr@codesourcery.com
Wed Aug 23 15:13:00 GMT 2000


Most of the testsuite failures introcuded by my recent changes in the
way g++ report diagnostics have their roots in the fact I didn't
update testsuite/lib/old-dejagnu.exp to reflect the new way of saying
things.  The patch below reduces of the number of unexpected failures
to four (4): 

   g++.ext/instantiate1.C
   g++.other/loop2.C
   g++.pt/infinite1.C

I'm still working to fix them.
(Special thanks to Geoff Keating)

OK to commit?

-- Gaby
CodeSourcery, LLC                             http://www.codesourcery.com

2000-08-23  Gabriel Dos Reis  <gdr@codesourcery.com>

	* lib/old-dejagnu.exp (old-dejagnu): Reflect the new way of
	starting diagnostics.

Index: old-dejagnu.exp
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/lib/old-dejagnu.exp,v
retrieving revision 1.17
diff -p -r1.17 old-dejagnu.exp
*** old-dejagnu.exp	2000/07/20 18:04:46	1.17
--- old-dejagnu.exp	2000/08/23 21:39:01
*************** proc old-dejagnu { compiler prog name cf
*** 526,535 ****
  
      #look to see if this is all thats left, if so, all messages have been handled
      #send_user "comp_output: $comp_output\n"
!     regsub -all "(^|\n)\[^\n\]*: In (function|method) \[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*: In instantiation of \[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*:   instantiated from \[^\n\]*" $comp_output "" comp_output
!     regsub -all "(^|\n)\[^\n\]*: At top level:\[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*file path prefix \[^\n\]* never used" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*linker input file unused since linking not done" $comp_output "" comp_output
      regsub -all "(^|\n)collect: re(compiling|linking)\[^\n\]*" $comp_output "" comp_output
--- 526,535 ----
  
      #look to see if this is all thats left, if so, all messages have been handled
      #send_user "comp_output: $comp_output\n"
!     regsub -all "(^|\n)\[^\n\]*: In (function|method|member function|static member function|copy constructor|constructor|destructor) \[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*: In instantiation of \[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*:   instantiated from \[^\n\]*" $comp_output "" comp_output
!     regsub -all "(^|\n)\[^\n\]*: At (top level|global scope):\[^\n\]*" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*file path prefix \[^\n\]* never used" $comp_output "" comp_output
      regsub -all "(^|\n)\[^\n\]*linker input file unused since linking not done" $comp_output "" comp_output
      regsub -all "(^|\n)collect: re(compiling|linking)\[^\n\]*" $comp_output "" comp_output




More information about the Gcc-patches mailing list