summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-12-04 14:18:54 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2015-12-04 14:22:07 +0200
commit1f2e03bc5262e412e822dec7c17a783c487c18cb (patch)
tree241971913b8c44ea1b77b3af0ee8c948591f84b8
parent0a4ac85042a1cdcfedf4cb782edc9bd1c814f3a7 (diff)
downloadbluez-1f2e03bc5262e412e822dec7c17a783c487c18cb.tar.gz
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.
-rw-r--r--unit/test-uuid.c4
1 files 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();
}