diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-12-15 15:01:54 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-12-16 02:52:22 +0100 |
commit | 4252696aec9ec038ff312a164e25f039da25126f (patch) | |
tree | ae0b5ef56a12577b5d04189fc5c9e4022bded186 /src/test/test-socket-util.c | |
parent | test: add a test for sd_netlink_message_{append,read}_strv() (diff) | |
download | systemd-4252696aec9ec038ff312a164e25f039da25126f.tar.xz systemd-4252696aec9ec038ff312a164e25f039da25126f.zip |
util: introduce ifname_valid_full()
Diffstat (limited to '')
-rw-r--r-- | src/test/test-socket-util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test-socket-util.c b/src/test/test-socket-util.c index b36e005264..2489d00e26 100644 --- a/src/test/test-socket-util.c +++ b/src/test/test-socket-util.c @@ -45,6 +45,7 @@ static void test_ifname_valid(void) { assert(ifname_valid("xxxxxxxxxxxxxxx")); assert(!ifname_valid("xxxxxxxxxxxxxxxx")); + assert(ifname_valid_full("xxxxxxxxxxxxxxxx", true)); } static void test_socket_address_parse_one(const char *in, int ret, int family, const char *expected) { |