From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [pushed] ptid-selftests: Fix erroneous assert messages
Date: Fri, 07 Apr 2017 14:35:00 -0000 [thread overview]
Message-ID: <20170407143446.2857-1-simon.marchi@ericsson.com> (raw)
In-Reply-To: <20170407112528.3f03fd37@ThinkPad>
gdb/ChangeLog:
* unittests/ptid-selftests.c: Fix erroneous assert messages.
---
gdb/ChangeLog | 4 ++++
gdb/unittests/ptid-selftests.c | 18 +++++++++---------
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f136ec9dbc..01c4c70b53 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-04-07 Simon Marchi <simon.marchi@ericsson.com>
+
+ * unittests/ptid-selftests.c: Fix erroneous assert messages.
+
2017-04-07 Alan Hayward <alan.hayward@arm.com>
* bfin-tdep.c (BFIN_MAX_REGISTER_SIZE): Add.
diff --git a/gdb/unittests/ptid-selftests.c b/gdb/unittests/ptid-selftests.c
index 5fc2ca6c18..a42c2efd04 100644
--- a/gdb/unittests/ptid-selftests.c
+++ b/gdb/unittests/ptid-selftests.c
@@ -129,21 +129,21 @@ static_assert (!ptid_t (2, 2, 2).matches (pid), "other both doesn't match pid");
/* Verify matches against exact matches. */
-static_assert (!pid.matches (lwp), "pid matches lwp");
+static_assert (!pid.matches (lwp), "pid doesn't match lwp");
static_assert (lwp.matches (lwp), "lwp matches lwp");
-static_assert (!tid.matches (lwp), "tid matches lwp");
-static_assert (!both.matches (lwp), "both matches lwp");
+static_assert (!tid.matches (lwp), "tid doesn't match lwp");
+static_assert (!both.matches (lwp), "both doesn't match lwp");
static_assert (!ptid_t (2, 2, 0).matches (lwp), "other lwp doesn't match lwp");
-static_assert (!pid.matches (tid), "pid matches tid");
-static_assert (!lwp.matches (tid), "lwp matches tid");
+static_assert (!pid.matches (tid), "pid doesn't match tid");
+static_assert (!lwp.matches (tid), "lwp doesn't match tid");
static_assert (tid.matches (tid), "tid matches tid");
-static_assert (!both.matches (tid), "both matches tid");
+static_assert (!both.matches (tid), "both doesn't match tid");
static_assert (!ptid_t (2, 0, 2).matches (tid), "other tid doesn't match tid");
-static_assert (!pid.matches (both), "pid matches both");
-static_assert (!lwp.matches (both), "lwp matches both");
-static_assert (!tid.matches (both), "tid matches both");
+static_assert (!pid.matches (both), "pid doesn't match both");
+static_assert (!lwp.matches (both), "lwp doesn't match both");
+static_assert (!tid.matches (both), "tid doesn't match both");
static_assert (both.matches (both), "both matches both");
static_assert (!ptid_t (2, 2, 2).matches (both),
"other both doesn't match both");
--
2.11.0
prev parent reply other threads:[~2017-04-07 14:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-06 19:03 [PATCH v2] Class-ify ptid_t Simon Marchi
2017-04-06 22:23 ` Pedro Alves
2017-04-07 0:04 ` Simon Marchi
2017-04-07 1:56 ` Pedro Alves
2017-04-07 3:21 ` Simon Marchi
2017-04-07 3:34 ` [pushed] " Simon Marchi
2017-04-07 9:25 ` [PATCH v2] " Philipp Rudo
2017-04-07 10:48 ` Pedro Alves
2017-04-07 14:34 ` Simon Marchi
2017-04-07 14:35 ` Simon Marchi [this message]
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=20170407143446.2857-1-simon.marchi@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@sourceware.org \
/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