]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-af-list.c
test-process-util: invert reporting to make sure that we're not dividing by 0
[thirdparty/systemd.git] / src / test / test-af-list.c
index e9fd66b1e65c9e94c858788a2ab09485775e4957..c8ef3295b568556e7869f6bfebffbce318317ac8 100644 (file)
@@ -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;
 }