From: Simon Marchi <simon.marchi@polymtl.ca>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Fix racy test in gdb.threads/thread-specific-bp.exp
Date: Tue, 04 Apr 2017 01:49:00 -0000 [thread overview]
Message-ID: <27d2906cc62411453861a5868a38bff8@polymtl.ca> (raw)
In-Reply-To: <1491253593-4116-1-git-send-email-yao.qi@linaro.org>
On 2017-04-03 17:06, Yao Qi wrote:
> diff --git a/gdb/testsuite/gdb.threads/thread-specific-bp.exp
> b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
> index bdf12f8..a652e9c 100644
> --- a/gdb/testsuite/gdb.threads/thread-specific-bp.exp
> +++ b/gdb/testsuite/gdb.threads/thread-specific-bp.exp
> @@ -87,9 +87,12 @@ proc check_thread_specific_breakpoint {mode} {
> } else {
> set cmd "continue"
> }
> - gdb_test "$cmd" \
> - "Breakpoint .* end .* at .*" \
> - "continue to end"
> + set test "continue to end"
> + gdb_test_multiple "$cmd" $test {
> + -re "Breakpoint .* end .* at .*(\[^\r\n\]*)\r\n$gdb_prompt " {
I am not sure I understand what this is supposed to match. First are
the parenthesis useful, since we're not using any capture group? Then,
.* followed with [^\r\n]* doesn't seem useful, since the .* can just
match anything the [^\r\n]* doesn't match.
What about just this?
set test "continue to end"
gdb_test_multiple "$cmd" $test {
-re "hit Breakpoint $decimal, end \\(\\) at.*$gdb_prompt " {
pass $test
}
}
Simon
next prev parent reply other threads:[~2017-04-04 1:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-03 21:06 Yao Qi
2017-04-04 1:49 ` Simon Marchi [this message]
2017-04-04 8:08 ` Yao Qi
2017-04-04 13:37 ` 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=27d2906cc62411453861a5868a38bff8@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=qiyaoltc@gmail.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