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] gcc.dg/debug.exp only test debug-[12] on Dwarf targets


	gcc.dg/debug/debug-[12].c fail at various levels of optimization
on non-Dwarf targets.  The following patch skips those tests.  Okay for
trunk? 

Thanks, David


	* debug/debug.exp: Skip debug-[12].c on non-Dwarf targets.

Index: debug.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/debug/debug.exp,v
retrieving revision 1.1
diff -c -p -r1.1 debug.exp
*** debug.exp	26 Jan 2002 02:38:57 -0000	1.1
--- debug.exp	12 May 2003 02:44:14 -0000
*************** foreach test [lsort [glob -nocomplain $s
*** 66,72 ****
  		&& [string match "*1" [lindex "$flags" 0] ] } { 
  	    set doit 0
  	}
! 	
  	if { $doit } {
  	    verbose -log "Testing $nshort, $flags" 1
  	    dg-test $test $flags ""
--- 66,77 ----
  		&& [string match "*1" [lindex "$flags" 0] ] } { 
  	    set doit 0
  	}
! 	if { [string match {*/debug-[12].c} "$nshort"] \
! 		&& ( [string match "*coff*" "$flags"] \
! 		     || [string match "*stabs*" "$flags"] ) } { 
! 	    set doit 0
! 	}
! 
  	if { $doit } {
  	    verbose -log "Testing $nshort, $flags" 1
  	    dg-test $test $flags ""


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