From 2a5909af17324442e052d3833ac7d4ff0ab689ba Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 21 Mar 2016 14:58:40 +0100 Subject: [PATCH] wmc: fix a typo in the test GCC 6 notices an unused constant and errors out. --- libwmc/tests/test-wmc-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libwmc/tests/test-wmc-utils.c b/libwmc/tests/test-wmc-utils.c index 49d7351d..93c2a6a6 100644 --- a/libwmc/tests/test-wmc-utils.c +++ b/libwmc/tests/test-wmc-utils.c @@ -128,8 +128,8 @@ test_utils_encapsulate_uml290_wmc1 (void *f, void *data) memcpy (inbuf, uml290_encap_src, sizeof (uml290_encap_src)); encap_len = wmc_encapsulate (inbuf, sizeof (uml290_encap_src), sizeof (inbuf), outbuf, sizeof (outbuf), TRUE); - g_assert (encap_len == sizeof (encap_outbuf)); - g_assert (memcmp (outbuf, encap_outbuf, encap_len) == 0); + g_assert (encap_len == sizeof (uml290_encap_outbuf)); + g_assert (memcmp (outbuf, uml290_encap_outbuf, encap_len) == 0); } static const char uml290_src[] = {