mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
test-cap-list: allow mismatch in case
This commit is contained in:
parent
e40872fc53
commit
dbf1f77bf7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user