* [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp
@ 2007-10-09 14:40 Pierre Muller
2007-10-09 15:05 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Pierre Muller @ 2007-10-09 14:40 UTC (permalink / raw)
To: gdb-patches
The testsuite does not go to completion on cygwin,
at least not on my computer.
I get a error:
Running ../../../src/gdb/testsuite/gdb.fortran/array-element.exp ...
ERROR: (DejaGnu) proc "additional" does not exist.
so nothing after gdb.fortran (in alphabetical order)
is tested... Which explains why I did not see
my pascal changes when testing them overnight.
I had to dig quite a long time to find this out:
using
make check RUNTESTFLAGS="--debug"
I was able to see in dbg.log that
there is a problem with lib/gdb.exp
due to a misplaced comment in gdb_run_cmd
Expect was looking for "The program .* has been started already.*y or n. $",
but after also for "#" "Use" "here"...
I have no idea if this is a problem of gdb_expect
or if comments are indeed not allowed inside this
function. It might be a cygwin specific issue,
but I have no ideas if this is the case.
Anyhow, moving the comment outside of gdb_expect
solved this problem, see patch below.
Is this OK to commit?
A simple way to test just this is to use
make check "RUNTESTFLAGS=--dir=gdb.fortran --debug"
and to inspect the file "dbg.log".
Could someone check if on other targets,
expect also considers the comment as a list of patterns?
Pierre Muller
testsuite/ChangeLog entry:
2007/10/09 Pierre Muller <muller@ics.u-strasbg.fr>
* lib/gdb.exp (gdb_run_cmd): Move comment outside
of gdb_expect call, to avoid interruption.
$ cvs diff -up lib/gdb.exp
Index: lib/gdb.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/lib/gdb.exp,v
retrieving revision 1.89
diff -u -p -r1.89 gdb.exp
--- lib/gdb.exp 9 Sep 2007 22:25:31 -0000 1.89
+++ lib/gdb.exp 9 Oct 2007 14:24:46 -0000
@@ -275,13 +275,13 @@ proc gdb_run_cmd {args} {
}
send_gdb "run $args\n"
# This doesn't work quite right yet.
- gdb_expect 60 {
+# Use -notransfer here so that test cases (like chng-sym.exp)
+# may test for additional start-up messages.
+ gdb_expect 60 {
-re "The program .* has been started already.*y or n. $" {
send_gdb "y\n"
exp_continue
}
- # Use -notransfer here so that test cases (like chng-sym.exp)
- # may test for additional start-up messages.
-notransfer -re "Starting program: \[^\r\n\]*" {}
}
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp
2007-10-09 14:40 [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp Pierre Muller
@ 2007-10-09 15:05 ` Daniel Jacobowitz
2007-10-09 15:49 ` Pierre Muller
2007-10-09 18:00 ` Joel Brobecker
0 siblings, 2 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-10-09 15:05 UTC (permalink / raw)
To: Pierre Muller; +Cc: gdb-patches
On Tue, Oct 09, 2007 at 04:37:03PM +0200, Pierre Muller wrote:
>
> Running ../../../src/gdb/testsuite/gdb.fortran/array-element.exp ...
> ERROR: (DejaGnu) proc "additional" does not exist.
Must be matching "for". I wonder why this doesn't break for anyone
else?
> 2007/10/09 Pierre Muller <muller@ics.u-strasbg.fr>
>
> * lib/gdb.exp (gdb_run_cmd): Move comment outside
> of gdb_expect call, to avoid interruption.
OK, thanks.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp
2007-10-09 15:05 ` Daniel Jacobowitz
@ 2007-10-09 15:49 ` Pierre Muller
2007-10-09 18:00 ` Joel Brobecker
1 sibling, 0 replies; 4+ messages in thread
From: Pierre Muller @ 2007-10-09 15:49 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb-patches
> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Daniel Jacobowitz
> Sent: Tuesday, October 09, 2007 4:46 PM
> To: Pierre Muller
> Cc: gdb-patches@sourceware.org
> Subject: Re: [RFC] Fix testsuite interruption on cygwin in
> gdb.fortran/array-element.exp
>
> On Tue, Oct 09, 2007 at 04:37:03PM +0200, Pierre Muller wrote:
> >
> > Running ../../../src/gdb/testsuite/gdb.fortran/array-element.exp ...
> > ERROR: (DejaGnu) proc "additional" does not exist.
>
> Must be matching "for". I wonder why this doesn't break for anyone
> else?
Maybe it depends on the runtest version?
runtest -V
returns
$ runtest -V
WARNING: Couldn't find the global config file.
Expect version is 5.26
Tcl version is 8.4
Framework version is 1.4.2.x
> > 2007/10/09 Pierre Muller <muller@ics.u-strasbg.fr>
> >
> > * lib/gdb.exp (gdb_run_cmd): Move comment outside
> > of gdb_expect call, to avoid interruption.
>
> OK, thanks.
Committed,
Pierre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp
2007-10-09 15:05 ` Daniel Jacobowitz
2007-10-09 15:49 ` Pierre Muller
@ 2007-10-09 18:00 ` Joel Brobecker
1 sibling, 0 replies; 4+ messages in thread
From: Joel Brobecker @ 2007-10-09 18:00 UTC (permalink / raw)
To: Pierre Muller, gdb-patches
> > Running ../../../src/gdb/testsuite/gdb.fortran/array-element.exp ...
> > ERROR: (DejaGnu) proc "additional" does not exist.
>
> Must be matching "for". I wonder why this doesn't break for anyone
> else?
This sounds very familiar, so I must have hit this issue too.
My issues were fixed by upgrading my tcl/expect/dejagnu install.
So I didn't look further into this.
--
Joel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-09 16:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-09 14:40 [RFC] Fix testsuite interruption on cygwin in gdb.fortran/array-element.exp Pierre Muller
2007-10-09 15:05 ` Daniel Jacobowitz
2007-10-09 15:49 ` Pierre Muller
2007-10-09 18:00 ` Joel Brobecker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox