diff options
-rw-r--r-- | src/test/test-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-util.c b/src/test/test-util.c index 10d8d210d5..8ceb71f22a 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -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) { |