diff options
author | Ben Chan <benchan@chromium.org> | 2018-11-07 10:26:23 -0800 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-11-08 17:00:59 +0100 |
commit | bf1b396596f2bbe9bc47c4ee5fb6176c3f14711e (patch) | |
tree | 4714ef2cb71c622aa646be060e885f4be4f8a410 /plugins | |
parent | 2522efb35964154cc5607f37941a7381c3eb0d09 (diff) |
tests: use memcmp() instead of g_assert_cmpmem() for now
g_assert_cmpmem() isn't available until glib 2.46, while the minimum
glib version required by ModemManager is 2.36. This patch replaces the
uses of g_assert_cmpmem() with memcmp() instead.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/altair/tests/test-modem-helpers-altair-lte.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/altair/tests/test-modem-helpers-altair-lte.c b/plugins/altair/tests/test-modem-helpers-altair-lte.c index ec25e5f8..da9eaf32 100644 --- a/plugins/altair/tests/test-modem-helpers-altair-lte.c +++ b/plugins/altair/tests/test-modem-helpers-altair-lte.c @@ -164,8 +164,7 @@ test_parse_vendor_pco_info (void) pco_data = mm_pco_get_data (pco, &pco_data_size); g_assert (pco_data != NULL); g_assert_cmpuint (pco_data_size, ==, good_pco_infos[i].pco_data_size); - g_assert_cmpmem (pco_data, pco_data_size, - good_pco_infos[i].pco_data, good_pco_infos[i].pco_data_size); + g_assert_cmpint (memcmp (pco_data, good_pco_infos[i].pco_data, pco_data_size), ==, 0); g_object_unref (pco); } |