From bf1b396596f2bbe9bc47c4ee5fb6176c3f14711e Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Wed, 7 Nov 2018 10:26:23 -0800 Subject: 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. --- libmm-glib/tests/test-pco.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmm-glib/tests/test-pco.c') diff --git a/libmm-glib/tests/test-pco.c b/libmm-glib/tests/test-pco.c index c25606fc..086ce3ba 100644 --- a/libmm-glib/tests/test-pco.c +++ b/libmm-glib/tests/test-pco.c @@ -76,8 +76,7 @@ test_pco_list_add (void) pco_data = mm_pco_get_data (pco, &pco_data_size); g_assert (pco_data != NULL); g_assert_cmpuint (pco_data_size, ==, expected_pco->pco_data_size); - g_assert_cmpmem (pco_data, pco_data_size, - expected_pco->pco_data, expected_pco->pco_data_size); + g_assert_cmpint (memcmp (pco_data, expected_pco->pco_data, pco_data_size), ==, 0); } mm_pco_list_free (list); -- cgit v1.2.3-70-g09d2