sysctl_test: Print standard error if sysctl -ao fails

MFC after:	1 week
This commit is contained in:
Mark Johnston 2025-07-08 12:48:40 +00:00
parent 1e570722dc
commit 26e31700fc

View file

@ -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