From: Brian Gix <brian.gix@intel.com>
To: linux-bluetooth@vger.kernel.org
Cc: Brian Gix <brian.gix@intel.com>
Subject: [PATCH v5 2/2] Make unit test compatible with GLIB v2.28
Date: Tue, 24 Jan 2017 11:52:44 -0800 [thread overview]
Message-ID: <1485287564-16879-3-git-send-email-brian.gix@intel.com> (raw)
In-Reply-To: <1485287564-16879-1-git-send-email-brian.gix@intel.com>
---
unit/test-midi.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/unit/test-midi.c b/unit/test-midi.c
index d318b07..3995c86 100644
--- a/unit/test-midi.c
+++ b/unit/test-midi.c
@@ -282,8 +282,12 @@ static void compare_events(const snd_seq_event_t *ev1,
ev2->data.control.value);
break;
case SND_SEQ_EVENT_SYSEX:
- g_assert_cmpmem(ev1->data.ext.ptr, ev1->data.ext.len,
- ev2->data.ext.ptr, ev2->data.ext.len);
+ g_assert_cmpint(ev1->data.ext.len,
+ ==,
+ ev2->data.ext.len);
+ g_assert(memcmp(ev1->data.ext.ptr,
+ ev2->data.ext.ptr,
+ ev2->data.ext.len) == 0);
break;
default:
g_assert_not_reached();
--
1.9.1
next prev parent reply other threads:[~2017-01-24 19:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 19:52 [PATCH v5 0/2] -- Try again for GLIB v2.28 compatibility Brian Gix
2017-01-24 19:52 ` [PATCH v5 1/2] Add test-midi to ignore list Brian Gix
2017-01-24 19:52 ` Brian Gix [this message]
2017-01-24 20:10 ` [PATCH v5 2/2] Make unit test compatible with GLIB v2.28 Gix, Brian
2017-01-25 12:23 ` Felipe Ferreri Tonello
2017-01-25 16:43 ` Gix, Brian
2017-01-25 17:03 ` Felipe Ferreri Tonello
2017-01-25 17:53 ` Von Dentz, Luiz
2017-01-25 18:05 ` [PATCH v5 0/2] -- Try again for GLIB v2.28 compatibility Luiz Augusto von Dentz
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=1485287564-16879-3-git-send-email-brian.gix@intel.com \
--to=brian.gix@intel.com \
--cc=linux-bluetooth@vger.kernel.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