From: Keith Seitz <keiths@cygnus.com>
To: <gdb-patches@sources.redhat.com>
Subject: Re: [RFC/A] testsuite/gdb.c++/ref-types.exp "cleanup"
Date: Fri, 19 Oct 2001 09:08:00 -0000 [thread overview]
Message-ID: <Pine.GSO.4.33.0110190908100.18666-100000@makita.cygnus.com> (raw)
On Fri, 19 Oct 2001, Fernando Nasser wrote:
> > +gdb_test {ptype as} {type = short (int)? \[4\]} {ptype as}
> >
> > -send_gdb "ptype as\n"
> > -gdb_expect {
> > - -re "type = short \\\[4\\\].*$gdb_prompt $" { pass "ptype as" }
> > - -re "type = short int \\\[4\\\].*$gdb_prompt $" { pass "ptype as" }
> > - -re ".*$gdb_prompt $" { fail "ptype as" }
> > - timeout { fail "(timeout) ptype as" }
> > -}
>
> I wonder if the extra space in the new pattern would not make it fail.
Oops. Late night braindeath. I actually wrote it this way to begin with,
then noticed that changing it from "( int)?" to " (int)?" had no effect on
linux and solaris deduced that it didn't make a difference. Of course it
doesn't! Both machines print out "short int [4]"! I will change these from
"short (int)?" to "short( int)?":
expect1.23> regexp {type = short (int)? \[4\].*(gdb)} {type = short int [4] (gdb)}
1
expect1.24> regexp {type = short (int)? \[4\].*(gdb)} {type = short [4] (gdb)}
0
expect1.25> regexp {type = short( int)? \[4\].*(gdb)} {type = short [4]
(gdb)}
1
expect1.26> regexp {type = short( int)? \[4\].*(gdb)} {type = short int [4] (gdb)}
1
> Of course you could make it "( int)?", but with the size of the change
> it is hard to find all these cases or to inspect them visually and not
> miss anything.
That's why we've got emacs! ;-)
Thanks for keeping me honest!
Keith
next reply other threads:[~2001-10-19 9:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-19 9:08 Keith Seitz [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-10-18 22:52 Keith Seitz
2001-10-19 8:28 ` Andrew Cagney
2001-10-19 11:29 ` Keith Seitz
2001-10-19 15:12 ` Andrew Cagney
2001-10-21 12:15 ` Keith Seitz
2001-10-19 12:36 ` Michael Snyder
2001-10-19 12:58 ` Keith Seitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.GSO.4.33.0110190908100.18666-100000@makita.cygnus.com \
--to=keiths@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox