mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-10 13:57:25 +03:00
test: add one more test case for parse_pid()
This commit is contained in:
parent
98e4d8d763
commit
348637b28a
@ -270,6 +270,9 @@ static void test_parse_pid(void) {
|
||||
r = parse_pid("0xFFFFFFFFFFFFFFFFF", &pid);
|
||||
assert_se(r == -ERANGE);
|
||||
assert_se(pid == 65);
|
||||
|
||||
r = parse_pid("junk", &pid);
|
||||
assert_se(r == -EINVAL);
|
||||
}
|
||||
|
||||
static void test_parse_uid(void) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user