Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Elizabeth Chastain <mec@shout.net>
To: ac131313@redhat.com, carlton@kealia.com
Cc: fnasser@redhat.com, gdb-patches@sources.redhat.com, jimb@redhat.com
Subject: Re: RFA: Don't include value of expression in pc-fp.exp test name
Date: Wed, 01 Oct 2003 19:06:00 -0000	[thread overview]
Message-ID: <200310011906.h91J6YlQ015766@duracef.shout.net> (raw)

Andrew Cagney writes:
> Michael, you and I had an e-mail exchange about this very issue.  The 
> end result, last time, was no change.

Right.  You think there's a convention about "(...)",
and I think there isn't.  Neither of us has changed our minds.

Fact: there are 1500+ test names with "(...)" in them.

Question: do you think these test names are written incorrectly?

If so, do you have any suggestions for alternate ways to rewrite
test names such as: 

  # parentheses used for precedence
  gdb.base/arithmet.exp: print x-(y+w)
  gdb.base/arithmet.exp: print x/(y*w)
  gdb.base/arithmet.exp: print x-(y/w)
  gdb.base/arithmet.exp: print (x+y)*w

  # parentheses used for function calls
  gdb.base/call-ar-st.exp: print print_double_array(double_array)
  gdb.base/call-ar-st.exp: print print_char_array(char_array)
  gdb.base/call-ar-st.exp: print print_double_array(array_d)
  gdb.base/call-ar-st.exp: print sum_array_print(10, *list1, *list2, *list3, *list4)
  gdb.base/call-ar-st.exp: print print_array_rep(*list1, *list2, *list3)

  # parentheses used for casts
  gdb.base/cvexpr.exp: (const char)
  gdb.base/cvexpr.exp: (const signed char)
  gdb.base/cvexpr.exp: (const unsigned char)
  gdb.base/cvexpr.exp: (const short)
  gdb.base/cvexpr.exp: (const signed short)
  gdb.base/cvexpr.exp: (const unsigned short)
  gdb.base/cvexpr.exp: (const int)
  gdb.base/cvexpr.exp: (const signed int)
  gdb.base/cvexpr.exp: (const unsigned int)

I am really adamant on this question.  Either "(...)" is legal to use
in test names and this line of your script is wrong:

    gsub (/ *\([^)]*\)/, "", test)

Or "(...)" is not legal to use in test names and we have 100+ test scripts
which are buggy and need to be patched.

Which is it?

If you want to say that "// ..." is a way of adding information,
then I would be okay with that, because I don't have any results
with "// ..." in the test name.

> For instance sizeof.exp contains various tests to check that sizes are 
> sane.  The actual sizes found are included in the output.  That's fine 
> since if the numbers were to change between runs the test results are 
> pretty sunk.

Sure, this part is fine.

Michael C


             reply	other threads:[~2003-10-01 19:06 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-01 19:06 Michael Elizabeth Chastain [this message]
2003-10-02 21:55 ` Andrew Cagney
  -- strict thread matches above, loose matches on Subject: below --
2003-10-02 22:43 Michael Elizabeth Chastain
2003-10-01 16:44 Michael Elizabeth Chastain
2003-10-01 18:29 ` Andrew Cagney
2003-10-01 19:33   ` David Carlton
2003-10-01  4:12 Michael Elizabeth Chastain
2003-09-30 17:49 Michael Elizabeth Chastain
2003-09-30 22:18 ` Jim Blandy
2003-10-01 15:31 ` Andrew Cagney
2003-10-01 15:49   ` David Carlton
     [not found] <200309291917.h8TJHLhn010447@duracef.shout.net>
2003-09-30  6:44 ` Jim Blandy
2003-09-30 15:36   ` David Carlton

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=200310011906.h91J6YlQ015766@duracef.shout.net \
    --to=mec@shout.net \
    --cc=ac131313@redhat.com \
    --cc=carlton@kealia.com \
    --cc=fnasser@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jimb@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