Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2025 10:53:02 +0000
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 23af364630b1 - main - tests: detect built-in modules
Message-ID:  <6926dc0e.3c028.150d5d85@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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
 


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6926dc0e.3c028.150d5d85>