mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-03 08:49:22 +00:00
netmap: fix unit tests
After ad874544d9
, interface name
validation has been removed, resulting in two unit tests failures.
Drop the failing tests since they no longer apply.
Reported by: markj
This commit is contained in:
parent
8a735ffdf0
commit
ee5804da11
|
@ -1803,7 +1803,6 @@ static struct nmreq_parse_test nmreq_parse_tests[] = {
|
|||
{ "netmap:", "", NULL, EINVAL, 0, 0, 0 },
|
||||
{ "netmap:^", "", NULL, EINVAL, 0, 0, 0 },
|
||||
{ "netmap:{", "", NULL, EINVAL, 0, 0, 0 },
|
||||
{ "netmap:vale0:0", NULL, NULL, EINVAL, 0, 0, 0 },
|
||||
{ "eth0", NULL, NULL, EINVAL, 0, 0, 0 },
|
||||
{ "vale0:0", "vale0:0", "", 0, NR_REG_ALL_NIC, 0, 0 },
|
||||
{ "vale:0", "vale:0", "", 0, NR_REG_ALL_NIC, 0, 0 },
|
||||
|
@ -1811,7 +1810,6 @@ static struct nmreq_parse_test nmreq_parse_tests[] = {
|
|||
{ "valeXXX:YYY-4", "valeXXX:YYY", "", 0, NR_REG_ONE_NIC, 4, 0 },
|
||||
{ "netmapXXX:eth0", NULL, NULL, EINVAL, 0, 0, 0 },
|
||||
{ "netmap:14", "14", "", 0, NR_REG_ALL_NIC, 0, 0 },
|
||||
{ "netmap:eth0&", NULL, NULL, EINVAL, 0, 0, 0 },
|
||||
{ "netmap:pipe{0", "pipe{0", "", 0, NR_REG_ALL_NIC, 0, 0 },
|
||||
{ "netmap:pipe{in", "pipe{in", "", 0, NR_REG_ALL_NIC, 0, 0 },
|
||||
{ "netmap:pipe{in-7", "pipe{in", "", 0, NR_REG_ONE_NIC, 7, 0 },
|
||||
|
|
Loading…
Reference in New Issue
Block a user