This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb_suppress_entire_file must die
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: gdb at sources dot redhat dot com
- Date: Tue, 4 Feb 2003 16:00:17 -0600
- Subject: Re: gdb_suppress_entire_file must die
Well, this does not work as I hoped:
if { [gdb_compile ...] != "" } {
perror "Testcase compile failed"
continue
}
However, I believe that this will:
if { [gdb_compile ...] != "" } {
perror "Testcase compile failed" 0
continue
}
Bet you didn't know that perror can take a second argument!
It turns out that the ERROR/WARN count is not being reset at the
end of each file, but it *is* reset at the end of each test.
The threshold is 1 error or 3 warnings. After that, exactly one
test gets forced to UNRESOLVED.
I don't know where to reset errcnt and warncnt properly in lib/gdb.exp.
Maybe Daniel J can suggest something?
Michael C
tcl hater since 1998
(to be fair, this is dejagnu's fault, not tcl's)