From a7a64b722bae22fbbde198367813a3a88f80738f Mon Sep 17 00:00:00 2001 From: Shteryana Shopova Date: Wed, 27 May 2020 16:33:00 +0000 Subject: [PATCH] Proper check if divert(4) module is present by the relevant tests Fix the netinet/netinet6 divert tests falsely reporting 'ipdivert module is not loaded' when the divert module is built into the kernel Sponsored by: Axiado Differential Revision: https://reviews.freebsd.org/D25026 --- tests/sys/netinet/divert.sh | 2 +- tests/sys/netinet6/divert.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/sys/netinet/divert.sh b/tests/sys/netinet/divert.sh index aa56149d9d3f..acd33742b791 100755 --- a/tests/sys/netinet/divert.sh +++ b/tests/sys/netinet/divert.sh @@ -31,7 +31,7 @@ . $(atf_get_srcdir)/../common/vnet.subr load_divert_module() { - kldstat -q -n ipdivert + kldstat -q -m ipdivert if [ $? -ne 0 ]; then atf_skip "ipdivert module is not loaded" fi diff --git a/tests/sys/netinet6/divert.sh b/tests/sys/netinet6/divert.sh index 2586cdbba936..61f10d14cf81 100755 --- a/tests/sys/netinet6/divert.sh +++ b/tests/sys/netinet6/divert.sh @@ -31,7 +31,7 @@ . $(atf_get_srcdir)/../common/vnet.subr load_divert_module() { - kldstat -q -n ipdivert + kldstat -q -m ipdivert if [ $? -ne 0 ]; then atf_skip "ipdivert module is not loaded" fi