From dbf1f77bf727f7566f25553232b33843ecc172f0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 18 Dec 2014 17:40:32 -0500 Subject: [PATCH] test-cap-list: allow mismatch in case --- src/test/test-cap-list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/test-cap-list.c b/src/test/test-cap-list.c index 238f876f2..7c5ae18b2 100644 --- a/src/test/test-cap-list.c +++ b/src/test/test-cap-list.c @@ -52,8 +52,8 @@ int main(int argc, char *argv[]) { assert_se(a = cap_to_name(i)); - /* quite the loop as soon as libcap only returns - * numeric ids, formatted as string */ + /* quit the loop as soon as libcap starts returning + * numeric ids, formatted as strings */ if (safe_atou(a, &u) >= 0) break; @@ -61,7 +61,7 @@ int main(int argc, char *argv[]) { printf("%s vs. %s\n", a, b); - assert_se(streq(a, b)); + assert_se(strcasecmp(a, b) == 0); } return 0; -- 2.30.2