From: Ken Werner <ken@linux.vnet.ibm.com>
To: Andreas Schwab <schwab@redhat.com>,
Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "Ulrich Weigand" <uweigand@de.ibm.com>, gdb-patches@sourceware.org
Subject: Re: [patch] OpenCL datatypes test fixes
Date: Wed, 16 Feb 2011 13:03:00 -0000 [thread overview]
Message-ID: <201102161319.11247.ken@linux.vnet.ibm.com> (raw)
In-Reply-To: <m3oc6c1dm2.fsf@redhat.com>
On Wednesday, February 16, 2011 11:24:21 am Andreas Schwab wrote:
> Ken Werner <ken@linux.vnet.ibm.com> writes:
> > On Tuesday, February 15, 2011 10:01:55 pm Ulrich Weigand wrote:
> >> Ken Werner wrote:
> >> > -gdb_test "whatis c2" "type = char \\\[2\\\]"
> >> > +gdb_test "whatis c2" "type = char2|char \\\[2\\\]"
> >>
> >> Don't we need some parentheses here (and everywere you've
> >> introduced alternatives via |)? Otherwise, it seems that
> >> this would stop working with the older compilers ...
> >
> > Hi Ulrich,
> >
> > Thanks for looking into this patch. Sometimes the GDB testsuite is a
> > mystery to me. This time it seems to work without parentheses:
> >
> > old compiler:
> > whatis c2
> > type = char [2]
> > (gdb) PASS: gdb.opencl/datatypes.exp: whatis c2
> >
> > new compiler:
> > whatis c2
> > type = char2
> > (gdb) PASS: gdb.opencl/datatypes.exp: whatis c2
> >
> > Any suggestions?
>
> This passes because "char \\\[2\\\]" matches (a substring of) the first
> output, but you really want to match the whole string "type = char [2]".
>
> +gdb_test "whatis c2" "type = char(2| \\\[2\\\])"
Does this also mean:
gdb_test "whatis c2" "type = .*(char(2| \\\[2\\\]))"
as suggested by Jan?
My intension was to exactly match either "char2" or "char [2]".
Thanks
Ken
next prev parent reply other threads:[~2011-02-16 12:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-15 20:11 Ken Werner
2011-02-15 21:06 ` Ulrich Weigand
2011-02-16 10:15 ` Ken Werner
2011-02-16 10:24 ` Jan Kratochvil
2011-02-16 10:33 ` Andreas Schwab
2011-02-16 13:03 ` Ken Werner [this message]
2011-02-16 13:55 ` Ulrich Weigand
2011-02-16 14:31 ` Ken Werner
2011-02-16 14:40 ` Ulrich Weigand
2011-02-16 15:38 ` Ken Werner
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=201102161319.11247.ken@linux.vnet.ibm.com \
--to=ken@linux.vnet.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@redhat.com \
--cc=schwab@redhat.com \
--cc=uweigand@de.ibm.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