mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
sysctl_test: Print standard error if sysctl -ao fails
MFC after: 1 week
This commit is contained in:
parent
1e570722dc
commit
26e31700fc
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue