aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristof Provost <kp@FreeBSD.org>2025-11-26 10:27:47 +0000
committerKristof Provost <kp@FreeBSD.org>2025-11-26 10:27:47 +0000
commit23af364630b133b09821757d33f253702606d4cf (patch)
tree673d31d09f4ec233b8a2d5254b2bf463c7cf5de9
parent718acd74657fdf21cfd03c721bb7484d3789aaa0 (diff)
tests: detect built-in modules
When checking vnet test prerequisites we check if if_epair and if_bridge are available, but we only checked for loadable modules. It's possible for these to be built into the kernel instead. Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--tests/sys/common/vnet.subr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sys/common/vnet.subr b/tests/sys/common/vnet.subr
index 0a32e6caf813..245dbaea517a 100644
--- a/tests/sys/common/vnet.subr
+++ b/tests/sys/common/vnet.subr
@@ -15,7 +15,7 @@ _vnet_check_req()
{
type=$1
- if kldstat -q -n if_${type}.ko; then
+ if kldstat -q -m if_${type}; then
return
fi