summaryrefslogtreecommitdiff
path: root/src/test/test-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-09-03 20:11:58 +0200
committerLennart Poettering <lennart@poettering.net>2015-09-04 09:07:31 +0200
commit348637b28a6253591a5899665d3cde6d8d71d118 (patch)
tree43624a03ecddefc2f9b0fd66a9019fe150ee74a3 /src/test/test-util.c
parent98e4d8d7635496cbf62c8127ce6a8e8f7604a031 (diff)
test: add one more test case for parse_pid()
Diffstat (limited to 'src/test/test-util.c')
-rw-r--r--src/test/test-util.c3
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) {