Skip to content

Commit

Permalink
mixer(8) tests: Fix cleanup routine
Browse files Browse the repository at this point in the history
The tests correctly skip if no snd_dummy neither mixer is found, but the
cleanup is still called with the skip condition, which fails if there is
no mixer.

MFC after:		2 days
Reviewed by:		christos
Differential Revision:	https://reviews.freebsd.org/D46491
  • Loading branch information
ocochard authored and christosmarg committed Aug 30, 2024
1 parent 973bbda commit 080c851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr.sbin/mixer/tests/mixer_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ set_default()

restore_default()
{
test -r "test_mixer_deflt_unit" && mixer -d $(cat test_mixer_deflt_unit)
test -r "test_mixer_deflt_unit" &&
mixer -d $(cat test_mixer_deflt_unit) || true
}

atf_test_case o_flag cleanup
Expand Down

0 comments on commit 080c851

Please sign in to comment.