git: c721ceeb3ef0 - main - syslogd/tests: use kern.features to detect INET support
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Feb 2026 21:21:36 UTC
The branch main has been updated by siva:
URL: https://cgit.FreeBSD.org/src/commit/?id=c721ceeb3ef0b29d06e6c3c634579f3bc85cc28b
commit c721ceeb3ef0b29d06e6c3c634579f3bc85cc28b
Author: Siva Mahadevan <siva@FreeBSD.org>
AuthorDate: 2026-02-19 20:53:26 +0000
Commit: Siva Mahadevan <siva@FreeBSD.org>
CommitDate: 2026-02-19 20:53:26 +0000
syslogd/tests: use kern.features to detect INET support
This fixes INET feature detection with kernel configs
that do not include the kern.conftxt sysctl, such as
riscv64 currently[0].
[0] https://ci.freebsd.org/view/Test/job/FreeBSD-main-riscv64-test/16514/testReport/usr.sbin.syslogd/syslogd_forwarded_format_test/O_flag_bsd_forwarded_legacy/
Reviewed by: markj
Approved by: emaste (mentor)
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55383
---
usr.sbin/syslogd/tests/syslogd_format_test_common.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/usr.sbin/syslogd/tests/syslogd_format_test_common.sh b/usr.sbin/syslogd/tests/syslogd_format_test_common.sh
index 99623015c15d..ea32561ccbb3 100644
--- a/usr.sbin/syslogd/tests/syslogd_format_test_common.sh
+++ b/usr.sbin/syslogd/tests/syslogd_format_test_common.sh
@@ -48,9 +48,8 @@ local_privsocket_filename()
confirm_INET_support_or_skip()
{
- if ! sysctl kern.conftxt | grep -qw INET; then
+ test "$(sysctl -inq kern.features.inet)" = 1 || \
atf_skip "Running kernel does not support INET"
- fi
}
set_common_atf_metadata()