chiark / gitweb /
test-cap-list: allow mismatch in case
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Dec 2014 22:40:32 +0000 (17:40 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Dec 2014 23:54:00 +0000 (18:54 -0500)
src/test/test-cap-list.c

index 238f876f2a1fb5b7ca870abac5ac83c80fd3e77d..7c5ae18b25aa38331c074318807c479206decb9e 100644 (file)
@@ -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;