Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Michael Elizabeth Chastain <mec.gnu@mindspring.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfc] Revamp logical.exp
Date: Wed, 14 Jul 2004 19:15:00 -0000	[thread overview]
Message-ID: <40F58643.3000102@gnu.org> (raw)
In-Reply-To: <20040714182014.4F59C4B104@berman.michael-chastain.com>

> The basic idea and the implementation are good.
> 
> I hand-checked all the data in the tables for correctness.
> It all looks fine to me.
> 
> In the test name, could you include something grep'able.
> So that if someone gets:
> 
>   FAIL: logical.exp: evaluation of x == y, {x = 1, y = 0}
> 
> They can find the right gdb_test by grepping on the wordage
> ("evalation of").
> 
> Yes, I see that there are only two gdb_test's in the whole file,
> but I like the test names to have searchable parts.  This has
> been essential to me when finding things in structs.exp.
> 
> Also please consider adding $val into the test name:
> 
>   FAIL: logical.exp: evaluation of x == y; {x = 1, y = 0}; expected 0

Like:

	variables x=1,y=0; initialize
	variables x=1,y=0; evaluate x == y; expecting 0

It reflects how the loop is implemented.

However, I could change the test to something like:

	gdb_test "print x=1,y=0,x == y" " = 0" "evaluate x = y; variables 
x=1,y=0; expecting 0"

If you want spaces, I'll need to tweak the tables.

> I think that makes it easier to see whether the test is written
> correctly or not, especially when someone goes to add 50 new tests.
> 
> And, as always ... did you run it somewhere?

My favorite, amd64 GNU/Linux.

> 2004-07-14  Andrew Cagney  <cagney@gnu.org>
> 
> 	* gdb.base/logical.exp: Update copyright.
> 	(evaluate): New procedure.  Use to re-implement tests using
> 	several tables.

Andrew



  reply	other threads:[~2004-07-14 19:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-14 18:20 Michael Elizabeth Chastain
2004-07-14 19:15 ` Andrew Cagney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-07-14 20:34 Michael Elizabeth Chastain
2004-07-15 17:40 ` Andrew Cagney
2004-07-14 16:38 Andrew Cagney

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=40F58643.3000102@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=mec.gnu@mindspring.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