git: 2748019034f0 - main - tests/sys/vfs: Fix the Linux kld check

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Thu, 01 Oct 2026 15:05:17 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=2748019034f036e7c18b0dcd7713d972b6e45eed

commit 2748019034f036e7c18b0dcd7713d972b6e45eed
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-01 15:00:46 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-01 15:04:48 +0000

    tests/sys/vfs: Fix the Linux kld check
    
    linux and linux64 are file names, not module names.  The corresponding
    module names are linuxelf and linux64elf, respectively, so these tests
    were always being skipped.
    
    Fixes:          b98d169d1f91 ("tests/sys/vfs: add ABI-root absolute symlink tests")
    Sponsored by:   The FreeBSD Foundation
---
 tests/sys/vfs/abi_root_symlink.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/sys/vfs/abi_root_symlink.sh b/tests/sys/vfs/abi_root_symlink.sh
index 18f7b5915a28..a8be5bffec97 100644
--- a/tests/sys/vfs/abi_root_symlink.sh
+++ b/tests/sys/vfs/abi_root_symlink.sh
@@ -29,7 +29,7 @@ require_linux()
 {
 	emul=$(sysctl -n compat.linux.emul_path 2>/dev/null)
 	[ "$emul" ] || atf_skip "Linux ABI not present (compat.linux.emul_path)"
-	kldstat -q -m linux64 || kldstat -q -m linux ||
+	kldstat -q -n linux64 || kldstat -q -n linux ||
 		atf_skip "linux(4) not loaded"
 	lsh="$emul/bin/sh"
 	[ -x "$lsh" ] || atf_skip "Linux userland not installed ($lsh)"