Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] fix cygwin gdb.base/find.exp failures
@ 2009-01-26 10:32 Pierre Muller
  2009-01-26 19:30 ` Doug Evans
  2009-01-26 22:41 ` Daniel Jacobowitz
  0 siblings, 2 replies; 4+ messages in thread
From: Pierre Muller @ 2009-01-26 10:32 UTC (permalink / raw)
  To: gdb-patches

  I am still running the testsuite using 
expect version 5.26 from 2003,
because I never managed to get expect 5.43
to run on cygwin... (no more pty available error :( )

  This version has some specific troubles, limitations
or features that make some tests fail using that version
while they should not (or does it have to do with the
tcl version... not really sure, I remember having read once
something about the multiple evaluation differences
for quoted versus braced expressions...).

  gdb.base/find.exp is such an example.

  By a one line patch, I fixed the 17 failures I get otherwise
for this test.

gdb/testsuite/ChangeLog entry:

2009-01-26  Pierre Muller  <muller@ics.u-strasbg.fr>

	* gdb.base/find.exp: Set newline variable
	using quotes instead of braces to fix cygwin failures.



cvs diff -up gdb/testsuite/gdb.base/*
Index: gdb/testsuite/gdb.base/find.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/find.exp,v
retrieving revision 1.4
diff -u -p -r1.4 find.exp
--- gdb/testsuite/gdb.base/find.exp     3 Jan 2009 05:58:03 -0000       1.4
+++ gdb/testsuite/gdb.base/find.exp     26 Jan 2009 10:24:04 -0000
@@ -54,7 +54,7 @@ gdb_expect {

 set hex_number {0x[0-9a-fA-F][0-9a-fA-F]*}
 set history_prefix {[$][0-9]* = }
-set newline {[\r\n]*}
+set newline "\[\r\n\]*"
 set pattern_not_found "${newline}Pattern not found\[.\]"
 set one_pattern_found "${newline}1 pattern found\[.\]"
 set two_patterns_found "${newline}2 patterns found\[.\]"


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

* Re: [RFA] fix cygwin gdb.base/find.exp failures
  2009-01-26 10:32 [RFA] fix cygwin gdb.base/find.exp failures Pierre Muller
@ 2009-01-26 19:30 ` Doug Evans
  2009-01-26 22:41 ` Daniel Jacobowitz
  1 sibling, 0 replies; 4+ messages in thread
From: Doug Evans @ 2009-01-26 19:30 UTC (permalink / raw)
  To: Pierre Muller; +Cc: gdb-patches

On Mon, Jan 26, 2009 at 2:32 AM, Pierre Muller <muller@ics.u-strasbg.fr> wrote:
>  I am still running the testsuite using
> expect version 5.26 from 2003,
> because I never managed to get expect 5.43
> to run on cygwin... (no more pty available error :( )
>
>  This version has some specific troubles, limitations
> or features that make some tests fail using that version
> while they should not (or does it have to do with the
> tcl version... not really sure, I remember having read once
> something about the multiple evaluation differences
> for quoted versus braced expressions...).
>
>  gdb.base/find.exp is such an example.
>
>  By a one line patch, I fixed the 17 failures I get otherwise
> for this test.
>
> gdb/testsuite/ChangeLog entry:
>
> 2009-01-26  Pierre Muller  <muller@ics.u-strasbg.fr>
>
>        * gdb.base/find.exp: Set newline variable
>        using quotes instead of braces to fix cygwin failures.
>
>
>
> cvs diff -up gdb/testsuite/gdb.base/*
> Index: gdb/testsuite/gdb.base/find.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/find.exp,v
> retrieving revision 1.4
> diff -u -p -r1.4 find.exp
> --- gdb/testsuite/gdb.base/find.exp     3 Jan 2009 05:58:03 -0000       1.4
> +++ gdb/testsuite/gdb.base/find.exp     26 Jan 2009 10:24:04 -0000
> @@ -54,7 +54,7 @@ gdb_expect {
>
>  set hex_number {0x[0-9a-fA-F][0-9a-fA-F]*}
>  set history_prefix {[$][0-9]* = }
> -set newline {[\r\n]*}
> +set newline "\[\r\n\]*"
>  set pattern_not_found "${newline}Pattern not found\[.\]"
>  set one_pattern_found "${newline}1 pattern found\[.\]"
>  set two_patterns_found "${newline}2 patterns found\[.\]"

Someone else will have to formally approve the patch, but I tested it
on i386-linux, and it works there so the patch is fine with me.


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

* Re: [RFA] fix cygwin gdb.base/find.exp failures
  2009-01-26 10:32 [RFA] fix cygwin gdb.base/find.exp failures Pierre Muller
  2009-01-26 19:30 ` Doug Evans
@ 2009-01-26 22:41 ` Daniel Jacobowitz
  2009-01-27 10:39   ` Pierre Muller
  1 sibling, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2009-01-26 22:41 UTC (permalink / raw)
  To: Pierre Muller; +Cc: gdb-patches

On Mon, Jan 26, 2009 at 11:32:17AM +0100, Pierre Muller wrote:
> 2009-01-26  Pierre Muller  <muller@ics.u-strasbg.fr>
> 
> 	* gdb.base/find.exp: Set newline variable
> 	using quotes instead of braces to fix cygwin failures.

Thanks, this is OK.

-- 
Daniel Jacobowitz
CodeSourcery


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

* RE: [RFA] fix cygwin gdb.base/find.exp failures
  2009-01-26 22:41 ` Daniel Jacobowitz
@ 2009-01-27 10:39   ` Pierre Muller
  0 siblings, 0 replies; 4+ messages in thread
From: Pierre Muller @ 2009-01-27 10:39 UTC (permalink / raw)
  To: 'Daniel Jacobowitz'; +Cc: gdb-patches

Committed, thanks!


Pierre Muller
Pascal language support maintainer for GDB


> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Daniel Jacobowitz
> Envoyé : Monday, January 26, 2009 8:45 PM
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFA] fix cygwin gdb.base/find.exp failures
> 
> On Mon, Jan 26, 2009 at 11:32:17AM +0100, Pierre Muller wrote:
> > 2009-01-26  Pierre Muller  <muller@ics.u-strasbg.fr>
> >
> > 	* gdb.base/find.exp: Set newline variable
> > 	using quotes instead of braces to fix cygwin failures.
> 
> Thanks, this is OK.
> 
> --
> Daniel Jacobowitz
> CodeSourcery


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

end of thread, other threads:[~2009-01-27  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-26 10:32 [RFA] fix cygwin gdb.base/find.exp failures Pierre Muller
2009-01-26 19:30 ` Doug Evans
2009-01-26 22:41 ` Daniel Jacobowitz
2009-01-27 10:39   ` Pierre Muller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox