kselftest/alsa: Report failures to set the requested sample rate as skips
authorMark Brown <broonie@kernel.org>
Thu, 1 Dec 2022 17:07:41 +0000 (17:07 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Dec 2022 19:02:11 +0000 (20:02 +0100)
commitf944f8b539ea76bd70348bfc35dfa0780e510c0f
tree2acb0e0f21ada5e8faaebd563361ae91da234eeb
parent22eeb8f531c117943a3ef9a75d4d40cdbcc66fb1
kselftest/alsa: Report failures to set the requested sample rate as skips

If constraint selection gives us a sample rate other than the one that we
asked for that isn't a failure, that is the device implementing sample
rate constraints and advertising that it can't support whatever we asked
for. Report such cases as a test skip rather than failure so we don't have
false positives.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221201170745.1111236-3-broonie@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c