Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Luis Machado <lgustavo@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH, v2] Fixup test names starting with uppercase
Date: Tue, 15 Nov 2016 19:28:00 -0000	[thread overview]
Message-ID: <1fe09c2b-e293-f7d3-a004-5659ed4e8160@redhat.com> (raw)
In-Reply-To: <1478929984-32339-1-git-send-email-lgustavo@codesourcery.com>

On 11/12/2016 05:53 AM, Luis Machado wrote:
> This fixes the offender testcases that have test names starting with
> uppercase.
> 
> I also tried to catch cases where we set the test names via variables.
> 
> We should probably adopt a policy and stick with it. If the way to go is
> all lowercase, then the following patch should hopefully help clean some
> of the inconsistencies up. Otherwise, we should go the other way and adjust
> the test names to start with uppercase.

I agree with lowercase.  It's what we use most pervasively, and I've
asked people to lowercase messages in review in the past.  The fewer
(bad) examples people can crib from, the better.  So thanks for doing this.

> 
> There is also the question about capitalization of architecture names,
> technology names (UST, TE) and language names (Pascal/Python/Rust).

I think all those are fine to capitalize.

> -    unsupported "ARM NEON is not supported"
> +    unsupported "arm NEON is not supported"

(If we lowercased arm, why not neon?)

Likewise, I think ABI, GDB, MI, CLI, PowerPC, LZMA, UST, all lowercased
at least once in the patch, sometimes inconsistently, can/should remain uppercase.

Also noticed:

> --- a/gdb/testsuite/gdb.base/watch_thread_num.exp
> +++ b/gdb/testsuite/gdb.base/watch_thread_num.exp
> @@ -60,7 +60,7 @@ gdb_test "continue" ".*Breakpoint .*loop.*" "Stopped in loop"
                                                                 ^^^^^^^^^^^^^^^

and:

>  
>  
>  gdb_test_multiple "thread" "Thread command" {

                               ^^^^^^^^^^^^^^^

>      -re ".*Current thread is (\[0-9\]*).*$gdb_prompt $" {
> -	pass "Thread command" 
> +	pass "thread command" 
>      }
>  }
>  

Thanks,
Pedro Alves


  reply	other threads:[~2016-11-15 19:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-12  5:53 Luis Machado
2016-11-15 19:28 ` Pedro Alves [this message]
2016-11-15 19:52   ` Luis Machado

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=1fe09c2b-e293-f7d3-a004-5659ed4e8160@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=lgustavo@codesourcery.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