From: Simon Marchi <simon.marchi@ericsson.com>
To: Luis Machado <lgustavo@codesourcery.com>, <gdb-patches@sourceware.org>
Cc: <markus.t.metzger@intel.com>
Subject: Re: [PATCH] Prevent turning record on while threads are running (PR 20869)
Date: Tue, 29 Nov 2016 16:42:00 -0000 [thread overview]
Message-ID: <8b198908-9a78-d2e8-1726-a471d3afb9b7@ericsson.com> (raw)
In-Reply-To: <fef2bdd4-d5c8-14a8-73ed-329b27961f1b@codesourcery.com>
On 16-11-29 10:58 AM, Luis Machado wrote:
>> +if ![supports_reverse] {
>
> Add an explicit untested call here?
Right, adding:
untested "reverse debugging not supported"
>> +proc test_record_while_running { } {
>> + gdb_test "continue &" "Continuing."
>> + gdb_test "record" "Can't enable record while the program is running. Use \"interrupt\" to stop it first."
>
> I have mixed feelings with the above test names. I'd know what to look
> for in case of failure, but more explicit test names wouldn't hurt for a
> quick inspection of the logs.
>
> "move thread"
> "switch record on when thread is moving"
>
> Feel free to pick it up though. Not a hard requirement.
You are right, it helps when reading the test. The command by itself doesn't
convey why we are using doing that command. How about:
proc_with_prefix test_record_while_running { } {
gdb_test "continue &" "Continuing." "resume target"
gdb_test \
"record" \
"Can't enable record while the program is running. Use \"interrupt\" to stop it first." \
"switch record on while target is running"
}
PASS: gdb.reverse/record-while-running.exp: test_record_while_running: resume target
PASS: gdb.reverse/record-while-running.exp: test_record_while_running: switch record on while target is running
I added proc_with_prefix, I think it can help by giving some context to the messages.
Thanks for the feedback,
Simon
next prev parent reply other threads:[~2016-11-29 16:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 15:08 Simon Marchi
2016-11-29 15:58 ` Luis Machado
2016-11-29 16:42 ` Simon Marchi [this message]
2016-11-29 16:47 ` Luis Machado
2016-11-30 15:36 ` Pedro Alves
2016-11-30 16:11 ` Luis Machado
2016-11-30 16:27 ` Simon Marchi
2016-11-30 9:54 ` Metzger, Markus T
2016-11-30 16:04 ` Simon Marchi
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=8b198908-9a78-d2e8-1726-a471d3afb9b7@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=lgustavo@codesourcery.com \
--cc=markus.t.metzger@intel.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