mirror of
https://github.com/systemd/systemd.git
synced 2025-02-24 17:57:34 +03:00
tests: add tests for empty string
This commit is contained in:
parent
d40c54fe56
commit
a4e6e06bc7
@ -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;
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ int main(int argc, const char *argv[]) {
|
||||
assert_se(arphrd_to_name(arphrd_max()) == NULL);
|
||||
assert_se(arphrd_to_name(0) == NULL);
|
||||
assert_se(arphrd_from_name("huddlduddl") == 0);
|
||||
assert_se(arphrd_from_name("") == 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user