From: Simon Marchi <simon.marchi@ericsson.com>
To: Pedro Alves <palves@redhat.com>, Yao Qi <qiyaoltc@gmail.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix -trace-save crash when argument is missing
Date: Mon, 17 Oct 2016 21:07:00 -0000 [thread overview]
Message-ID: <351d76ce-683c-eebc-9f7f-16f66d1e2d4c@ericsson.com> (raw)
In-Reply-To: <528b1dbb-7ccd-ab73-b561-4216ab52e8b8@redhat.com>
On 16-10-17 04:59 PM, Pedro Alves wrote:
> On 10/17/2016 09:49 PM, Simon Marchi wrote:
>> + mi_gdb_test "-trace-save" "$err_re" "-trace-save with missing argument"
>> + mi_gdb_test "-trace-save a b" "$err_re" "-trace-save with missing argument"
>
> Duplicate test messages?
>
Ahh damnit! Just when I thought it was an obvious change :). Thanks for pointing it out.
From e42b25a0407fbbf3529815f69bd56a61b1821295 Mon Sep 17 00:00:00 2001
From: Simon Marchi <simon.marchi@ericsson.com>
Date: Mon, 17 Oct 2016 17:05:46 -0400
Subject: [PATCH] Fix duplicate test message in mi-trace-save.exp
gdb/testsuite/ChangeLog:
* gdb.trace/mi-trace-save.exp (test_trace_save_wrong_num_args):
Change test message.
---
gdb/testsuite/ChangeLog | 5 +++++
gdb/testsuite/gdb.trace/mi-trace-save.exp | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 9d35283..4ecf0b7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,6 +1,11 @@
2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
* gdb.trace/mi-trace-save.exp (test_trace_save_wrong_num_args):
+ Change test message.
+
+2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
+
+ * gdb.trace/mi-trace-save.exp (test_trace_save_wrong_num_args):
Update comment.
2016-10-17 Simon Marchi <simon.marchi@ericsson.com>
diff --git a/gdb/testsuite/gdb.trace/mi-trace-save.exp b/gdb/testsuite/gdb.trace/mi-trace-save.exp
index edb3a59..156ec54 100644
--- a/gdb/testsuite/gdb.trace/mi-trace-save.exp
+++ b/gdb/testsuite/gdb.trace/mi-trace-save.exp
@@ -27,7 +27,7 @@ proc test_trace_save_wrong_num_args { } {
set err_re [string_to_regexp "^error,msg=\"Exactly one argument required (file in which to save trace data)\""]
mi_gdb_test "-trace-save" "$err_re" "-trace-save with missing argument"
- mi_gdb_test "-trace-save a b" "$err_re" "-trace-save with missing argument"
+ mi_gdb_test "-trace-save a b" "$err_re" "-trace-save with too many arguments"
}
# Test with an unrecognized option.
--
2.10.1
next prev parent reply other threads:[~2016-10-17 21:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-14 20:26 Simon Marchi
2016-10-17 20:09 ` Yao Qi
2016-10-17 20:37 ` Simon Marchi
2016-10-17 20:50 ` Simon Marchi
2016-10-17 20:56 ` Simon Marchi
2016-10-17 20:59 ` Pedro Alves
2016-10-17 21:07 ` Simon Marchi [this message]
2016-10-17 21:08 ` Pedro Alves
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=351d76ce-683c-eebc-9f7f-16f66d1e2d4c@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--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