summaryrefslogtreecommitdiff
path: root/src/test/test-af-list.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-28 17:54:04 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-28 20:20:50 +0900
commitacf4d158931e4529e0e76748b6a1c9f11c61c3ff (patch)
treec3b5f63bacd9097010b89c5f7e5be937112b50c3 /src/test/test-af-list.c
parent7b5e750d2a568ad6d1e3cb6b787edb13fd909086 (diff)
downloadsystemd-acf4d158931e4529e0e76748b6a1c9f11c61c3ff.tar.gz
util: make *_from_name() returns negative errno on error
Diffstat (limited to 'src/test/test-af-list.c')
-rw-r--r--src/test/test-af-list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c
index e9fd66b1e6..c8ef3295b5 100644
--- a/src/test/test-af-list.c
+++ b/src/test/test-af-list.c
@@ -27,8 +27,8 @@ int main(int argc, const char *argv[]) {
assert_se(af_to_name(af_max()) == NULL);
assert_se(af_to_name(-1) == NULL);
- assert_se(af_from_name("huddlduddl") == AF_UNSPEC);
- assert_se(af_from_name("") == AF_UNSPEC);
+ assert_se(af_from_name("huddlduddl") == -EINVAL);
+ assert_se(af_from_name("") == -EINVAL);
return 0;
}