From: Unique-Usman Date: Thu, 7 Mar 2024 14:47:44 +0000 (+0530) Subject: Added a unit test to cover af_to_name in af-list.c X-Git-Tag: v256-rc1~604 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f621aea33cb76a26ae2731739fc869eefbe59139;p=thirdparty%2Fsystemd.git Added a unit test to cover af_to_name in af-list.c --- diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c index 45655d792ed..8c86b72dc02 100644 --- a/src/test/test-af-list.c +++ b/src/test/test-af-list.c @@ -22,6 +22,7 @@ TEST(af_list) { } assert_se(af_to_name(af_max()) == NULL); + assert_se(af_to_name(0) == NULL); assert_se(af_to_name(-1) == NULL); assert_se(af_from_name("huddlduddl") == -EINVAL); assert_se(af_from_name("") == -EINVAL);