git: 984e3d813e5f - stable/14 - netmap: fix unit tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Apr 2025 22:51:16 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=984e3d813e5f1d2a0938bdf5c03712de0ab1099b
commit 984e3d813e5f1d2a0938bdf5c03712de0ab1099b
Author: Vincenzo Maffione <vmaffione@FreeBSD.org>
AuthorDate: 2023-12-29 07:46:46 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-04-06 18:05:05 +0000
netmap: fix unit tests
After ad874544d9f018bf8eef4053b5ca7b856c4674cb, interface name
validation has been removed, resulting in two unit tests failures.
Drop the failing tests since they no longer apply.
Reported by: markj
(cherry picked from commit ee5804da116f2107451c8b4376b69b3a64a630e8)
---
tests/sys/netmap/ctrl-api-test.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/sys/netmap/ctrl-api-test.c b/tests/sys/netmap/ctrl-api-test.c
index 9fc08d3082a4..8d33b4c58d2a 100644
--- a/tests/sys/netmap/ctrl-api-test.c
+++ b/tests/sys/netmap/ctrl-api-test.c
@@ -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 },