summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-parse-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-parse-util.c b/src/test/test-parse-util.c
index 75fc3d9455..1ba8c8987f 100644
--- a/src/test/test-parse-util.c
+++ b/src/test/test-parse-util.c
@@ -869,8 +869,8 @@ TEST(parse_fd) {
assert_se(parse_fd("0") == 0);
assert_se(parse_fd("1") == 1);
- assert_se(parse_fd("-1") == -ERANGE);
- assert_se(parse_fd("-3") == -ERANGE);
+ assert_se(parse_fd("-1") == -EBADF);
+ assert_se(parse_fd("-3") == -EBADF);
assert_se(parse_fd("") == -EINVAL);
assert_se(parse_fd("12.3") == -EINVAL);