public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [patch] testsuite: sigall.exp: Fix false FAILs
@ 2010-09-13  8:28 Jan Kratochvil
  2010-09-13 19:15 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2010-09-13  8:28 UTC (permalink / raw)
  To: gdb-patches

Hi,

if your sourcetree topdir contains a substring "kill" then while still:

make check RUNTESTFLAGS=gdb.base/sigall.exp
# of expected passes            380

the other case starts FAILing:

make check//unix RUNTESTFLAGS=gdb.base/sigall.exp
# of expected passes            290
# of unexpected failures        90

It is due to a false catch in the second case:

Breakpoint 61, gen_WAITING () at /home/jkratoch/redhat/gdb-test-dir-kill/gdb/testsuite/gdb.base/sigall.c:1136^M
1136      handle_WAITING (0);^M

which is not a problem in the first case:

Breakpoint 61, gen_WAITING () at ./gdb.base/sigall.c:1136^M
1136      handle_WAITING (0);^M

The two lines being matched look always like:
826       kill (getpid (), SIGILL);^M
839       handle_EMT (0);^M

Tested on x86_64-fedora14snapshot-linux-gnu.

Going to check it in in some days as obvious.


Thanks,
Jan


gdb/testsuite/
2010-09-12  Jan Kratochvil  <jan.kratochvil@redhat.com>

	Fix false FAILs on sourcetree topdir directory containing "kill".
	* gdb.base/sigall.exp (test_one_sig) <advance to $nextsig>: Extend the
	source line matching regexp.

--- a/gdb/testsuite/gdb.base/sigall.exp
+++ b/gdb/testsuite/gdb.base/sigall.exp
@@ -94,11 +94,11 @@ proc test_one_sig {nextsig} {
 
     if { $missed_handler == "0" } then {
 	gdb_test_multiple "signal 0" "advance to $nextsig" {
-	    -re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
+	    -re "Breakpoint.*gen_$nextsig.*\r\n\[0-9\]+\[ \t\]+kill \\(.*\r\n$gdb_prompt $" {
 	        pass "advance to $nextsig"
 	        set sig_supported 1
 	    }
-	    -re "Breakpoint.*gen_$nextsig.*handle.*$gdb_prompt $" {
+	    -re "Breakpoint.*gen_$nextsig.*\r\n\[0-9\]+\[ \t\]+handle_.*\r\n$gdb_prompt $" {
 	        pass "advance to $nextsig"
 	        set sig_supported 0
 	    }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] testsuite: sigall.exp: Fix false FAILs
  2010-09-13  8:28 [patch] testsuite: sigall.exp: Fix false FAILs Jan Kratochvil
@ 2010-09-13 19:15 ` Joel Brobecker
  2010-09-14  8:02   ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2010-09-13 19:15 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb-patches

> gdb/testsuite/
> 2010-09-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
> 
> 	Fix false FAILs on sourcetree topdir directory containing "kill".
> 	* gdb.base/sigall.exp (test_one_sig) <advance to $nextsig>: Extend the
> 	source line matching regexp.

This looks fine to me too. Please go ahead and commit.

-- 
Joel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] testsuite: sigall.exp: Fix false FAILs
  2010-09-13 19:15 ` Joel Brobecker
@ 2010-09-14  8:02   ` Jan Kratochvil
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Kratochvil @ 2010-09-14  8:02 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches

On Mon, 13 Sep 2010 20:53:37 +0200, Joel Brobecker wrote:
> > gdb/testsuite/
> > 2010-09-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
> > 
> > 	Fix false FAILs on sourcetree topdir directory containing "kill".
> > 	* gdb.base/sigall.exp (test_one_sig) <advance to $nextsig>: Extend the
> > 	source line matching regexp.
> 
> This looks fine to me too. Please go ahead and commit.

Checked-in:
	http://sourceware.org/ml/gdb-cvs/2010-09/msg00095.html


Thanks,
Jan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-13 20:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-13  8:28 [patch] testsuite: sigall.exp: Fix false FAILs Jan Kratochvil
2010-09-13 19:15 ` Joel Brobecker
2010-09-14  8:02   ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).