mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
Add more unit test to cover the uid_range_covers inside the uid-range.c file (#31666)
* Add more unit test to cover the uid_range_covers inside the uid-range.c file
This commit is contained in:
parent
f621aea33c
commit
bda7e4d2e5
|
@ -20,6 +20,8 @@ TEST(uid_range) {
|
|||
assert_se(uid_range_covers(p, 0, 0));
|
||||
assert_se(!uid_range_covers(p, 0, 1));
|
||||
assert_se(!uid_range_covers(p, 100, UINT32_MAX));
|
||||
assert_se(!uid_range_covers(p, UINT32_MAX, 1));
|
||||
assert_se(!uid_range_covers(p, UINT32_MAX - 10, 11));
|
||||
|
||||
assert_se(uid_range_add_str(&p, "500-999") >= 0);
|
||||
assert_se(p);
|
||||
|
|
Loading…
Reference in a new issue