linux/tools/testing/selftests/alsa
Ben Copeland 4b097a7b25 selftests: ALSA: Skip utimer test when CONFIG_SND_UTIMER is not enabled
The timer_f.utimer test hard-fails with ASSERT_EQ when
SNDRV_TIMER_IOCTL_CREATE returns -1 on kernels without
CONFIG_SND_UTIMER. This causes the entire alsa kselftest suite to
report a failure rather than skipping the unsupported test.

When CONFIG_SND_UTIMER is not enabled, the ioctl is not recognised and
the kernel returns -ENOTTY. If the timer device or subdevice does not
exist, -ENXIO is returned. Skip the test in both cases, but still fail
on any other unexpected error.

Suggested-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/linux-kselftest/0e9c25d3-efbd-433b-9fb1-0923010101b9@stanley.mountain/
Signed-off-by: Ben Copeland <ben.copeland@linaro.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260319124521.191491-1-ben.copeland@linaro.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2026-03-27 14:40:18 +01:00
..
conf.d kselftest/alsa: pcm - move more configuration to configuration files 2023-01-02 15:07:35 +01:00
.gitignore selftests/alsa: Add a few missing gitignore files 2024-11-24 10:31:13 +01:00
alsa-local.h kselftest/alsa: pcm-test: Report cards declared in config but missing 2023-09-20 18:10:50 +02:00
conf.c Significant patch series in this pull request: 2025-12-06 14:01:20 -08:00
global-timer.c selftests: ALSA: Cover userspace-driven timers with test 2024-08-18 09:55:55 +02:00
Makefile selftests/alsa: Fix circular dependency involving global-timer 2024-12-20 10:00:41 +01:00
mixer-test.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pcm-test.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
pcm-test.conf kselftest/alsa: pcm - Add more coverage by default 2023-01-02 15:08:24 +01:00
test-pcmtest-driver.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
utimer-test.c selftests: ALSA: Skip utimer test when CONFIG_SND_UTIMER is not enabled 2026-03-27 14:40:18 +01:00