From: Zbigniew Jędrzejewski-Szmek Date: Thu, 18 Dec 2014 22:40:32 +0000 (-0500) Subject: test-cap-list: allow mismatch in case X-Git-Tag: v219~931 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=dbf1f77bf727f7566f25553232b33843ecc172f0;p=elogind.git test-cap-list: allow mismatch in case --- 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;