kselftest/alsa: pcm - skip tests when we fail to set params
authorMark Brown <broonie@kernel.org>
Tue, 27 Dec 2022 17:06:49 +0000 (17:06 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2023 14:07:58 +0000 (15:07 +0100)
commit34fb956cbdba8e726d72da9796a8a1b65337d9db
treede06ca9085f119ffe2a8e54f6ba334af031a045f
parent7769f1abecf501902cf96e871739da7f97424a43
kselftest/alsa: pcm - skip tests when we fail to set params

Since we don't know what the capabilities of an unknown card is any of our
standard tests may fail due to not being supported by the system. Set a
flag once we've configured the stream, just before we start data, to say
that the system accepted our stream configuration.

Since there shouldn't be a use case for tests that are specified for the
individual system failing for those tests we also add a new test which
fails if we are unable to configure the settings specified in the system
specific configuration file.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20221208-alsa-pcm-test-hacks-v4-4-5a152e65b1e1@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
tools/testing/selftests/alsa/pcm-test.c