Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: "Pierre Muller" <muller@ics.u-strasbg.fr>
Cc: <gdb-patches@sourceware.org>
Subject: Re: small test suite cleanup
Date: Fri, 13 Feb 2009 23:38:00 -0000	[thread overview]
Message-ID: <m3tz6yc4i8.fsf@fleche.redhat.com> (raw)
In-Reply-To: <000101c98e2d$3cc425d0$b64c7170$@u-strasbg.fr> (Pierre Muller's message of "Fri\, 13 Feb 2009 23\:48\:48 +0100")

>>>>> "Pierre" == Pierre Muller <muller@ics.u-strasbg.fr> writes:

Pierre> I changed   get_valueof proc to accept
Pierre> anything as a return value and
Pierre> added a new get_integer_valueof proc
Pierre> that has no format parameter and
Pierre> uses "print /d $exp".

It looks pretty good, I have one nit.

Pierre> +proc get_integer_valueof { exp default } {
Pierre> +    global gdb_prompt
Pierre> +
Pierre> +    set test "get integer valueof \"${exp}\""
Pierre> +    set val ${default}
Pierre> +    gdb_test_multiple "print /d ${exp}" "$test" {
Pierre>         -re "\\$\[0-9\]* = (\[-\]*\[0-9\]*).*$gdb_prompt $" {
Pierre>             set val $expect_out(1,string)
Pierre>             pass "$test ($val)"
Pierre>         }
Pierre>         timeout {
Pierre> -           set size ${default}
Pierre>             fail "get value of ${exp} (timeout)"

This line should use $test.

This is ok with this change.

If you want to get rid of get_valueofx, and have the caller use
get_valueof, that would be fine by me.

thanks,
Tom


  reply	other threads:[~2009-02-13 23:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-13 16:36 FYI: " Tom Tromey
2009-02-13 16:57 ` Pierre Muller
2009-02-13 18:42   ` Tom Tromey
2009-02-13 23:16     ` Pierre Muller
2009-02-13 23:38       ` Tom Tromey [this message]
2009-02-13 23:49         ` [Commit]: " Pierre Muller

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=m3tz6yc4i8.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=muller@ics.u-strasbg.fr \
    /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