diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-11-28 10:13:05 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2017-11-28 12:21:25 +0100 |
commit | a4e6e06bc795cfd8b96ac8da4ea3b97f9a3ea4a0 (patch) | |
tree | 474c2e879d1a4c428efcef0c866741f641c7c85f /src/test/test-af-list.c | |
parent | alloc-util: coding style fix (diff) | |
download | systemd-a4e6e06bc795cfd8b96ac8da4ea3b97f9a3ea4a0.tar.xz systemd-a4e6e06bc795cfd8b96ac8da4ea3b97f9a3ea4a0.zip |
tests: add tests for empty string
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 6934549287..2d42dc2c54 100644 --- a/src/test/test-af-list.c +++ b/src/test/test-af-list.c @@ -46,6 +46,7 @@ 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); return 0; } |