git: 23af364630b1 - main - tests: detect built-in modules
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Nov 2025 10:53:02 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=23af364630b133b09821757d33f253702606d4cf
commit 23af364630b133b09821757d33f253702606d4cf
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-11-26 10:27:47 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-11-26 10:27:47 +0000
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")
---
tests/sys/common/vnet.subr | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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