diff options
author | Unique-Usman <usmanakinyemi202@gmail.com> | 2024-03-07 15:47:44 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-03-07 23:57:38 +0100 |
commit | f621aea33cb76a26ae2731739fc869eefbe59139 (patch) | |
tree | 4a19edd802d32371c18269ac23d386f860db2686 /src/test/test-af-list.c | |
parent | logind-dbus: count user-early sessions in verify_shutdown_creds too (diff) | |
download | systemd-f621aea33cb76a26ae2731739fc869eefbe59139.tar.xz systemd-f621aea33cb76a26ae2731739fc869eefbe59139.zip |
Added a unit test to cover af_to_name in af-list.c
Diffstat (limited to 'src/test/test-af-list.c')
-rw-r--r-- | src/test/test-af-list.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-af-list.c b/src/test/test-af-list.c index 45655d792e..8c86b72dc0 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); |