Skip to contentSkip to conversation

Make patchset compatible with GLIB v2.28

PATCH Superseded Brian Gix 1 participant 3 messages Jan 24, 2017 Bluetooth drivers

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

Brian Gix

author
#0 lore raw

v4 cover Make patchset compatible with GLIB v2.28

Removed the v2.46 assertion in favor of two supported asserts

author
#1 lore raw

PATCH v4 1/2 Add test-midi to ignore list

---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
.gitignore +1 -0
index 6257505..c0745b4 100644
@@ -138,6 +138,7 @@ unit/test-avdtp
 unit/test-avctp
 unit/test-avrcp
 unit/test-gatt
+unit/test-midi
 unit/test-gattrib
 unit/test-*.log
 unit/test-*.trs
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH v4 2/2 Make unit test compatible with GLIB v2.28

In reply to Brian Gix
---
 unit/test-midi.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
unit/test-midi.c +6 -2
index d318b07..6eed82a 100644
@@ -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_true(memcmp(ev1->data.ext.ptr,
+		                ev2->data.ext.ptr,
+				ev2->data.ext.len) == 0);
 		break;
 	default:
 		g_assert_not_reached();
Signature · 1 line
1.9.1