From 1f2e03bc5262e412e822dec7c17a783c487c18cb Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 4 Dec 2015 14:18:54 +0200 Subject: unit/test-uuid: Fix using strcmp It is no longer guaranteed the string will match since bt_uuid_to_string now always uses 128 Bits format to be consistent with the format used over D-Bus. --- unit/test-uuid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unit/test-uuid.c b/unit/test-uuid.c index 5f45b0c6f..7c6789e39 100644 --- a/unit/test-uuid.c +++ b/unit/test-uuid.c @@ -151,7 +151,7 @@ static void test_str(gconstpointer data) g_assert(bt_string_to_uuid(&uuid, test_data->str) == 0); bt_uuid_to_string(&uuid, buf, sizeof(buf)); - g_assert(strcasecmp(buf, str) == 0); + g_assert(bt_uuid_strcmp(buf, str) == 0); switch (test_data->type) { case BT_UUID16: @@ -166,7 +166,7 @@ static void test_str(gconstpointer data) } bt_uuid_to_string(&uuid, buf, sizeof(buf)); - g_assert(strcasecmp(buf, str) == 0); + g_assert(bt_uuid_strcmp(buf, str) == 0); tester_test_passed(); } -- cgit v1.2.1