This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFC] gdb.cp/static-print-quit.exp: fix racy tests (PR testsuite/12649)
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Marek Polacek'" <mpolacek at redhat dot com>, "'Jan Kratochvil'" <jan dot kratochvil at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Fri, 6 May 2011 13:08:51 +0200
- Subject: RE: [RFC] gdb.cp/static-print-quit.exp: fix racy tests (PR testsuite/12649)
- References: <20110506021511.GA30222@host1.jankratochvil.net> <4DC3B82D.1000505@redhat.com>
> > +set test "print c - to quit"
> > +gdb_test_multiple "" $test {
> > -re " to quit---$" {
>
> the `-re' are in fact not needed since we don't use any regexps in the
> string. However, they certainly do no harm so no need to remove them.
> Thanks again, Jan.
Just a small question about this,
from the expect beginner that I still am:
isn't the dollar sign a regexpr pattern meaning end of string?
Would it really work without -re here?
Pierre Muller
GDB pascal language maintainer