From 26e31700fc7d9bd033cb157f534c67bf9bc697dd Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 8 Jul 2025 12:48:40 +0000 Subject: [PATCH] sysctl_test: Print standard error if sysctl -ao fails MFC after: 1 week --- sbin/sysctl/tests/sysctl_test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/sysctl/tests/sysctl_test.sh b/sbin/sysctl/tests/sysctl_test.sh index dfc32a87b21..b4cc7180a0f 100644 --- a/sbin/sysctl/tests/sysctl_test.sh +++ b/sbin/sysctl/tests/sysctl_test.sh @@ -41,6 +41,7 @@ sysctl_aflag_body() # output and it would all otherwise be saved. sysctl -ao >/dev/null 2>stderr if [ $? -ne 0 ]; then + cat stderr atf_fail "sysctl -ao failed" elif [ -s stderr ]; then cat stderr