summaryrefslogtreecommitdiffstats
path: root/src/test/test-socket-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-12-15 15:01:54 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-12-16 02:52:22 +0100
commit4252696aec9ec038ff312a164e25f039da25126f (patch)
treeae0b5ef56a12577b5d04189fc5c9e4022bded186 /src/test/test-socket-util.c
parenttest: add a test for sd_netlink_message_{append,read}_strv() (diff)
downloadsystemd-4252696aec9ec038ff312a164e25f039da25126f.tar.xz
systemd-4252696aec9ec038ff312a164e25f039da25126f.zip
util: introduce ifname_valid_full()
Diffstat (limited to '')
-rw-r--r--src/test/test-socket-util.c1
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) {