aboutsummaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorGravatar Nícolas F. R. A. Prado <nfraprado@collabora.com> 2023-06-20 18:08:26 -0400
committerGravatar Takashi Iwai <tiwai@suse.de> 2023-07-10 08:58:27 +0200
commit7d43f51e4046c49230dea0d4f991c4cd1759327f (patch)
treea8aa78994d29d659ff176066d5df688f2469267a /tools/testing
parentkselftest/alsa: pcm-test: Move stream duration and margin to variables (diff)
downloadlinux-7d43f51e4046c49230dea0d4f991c4cd1759327f.tar.gz
linux-7d43f51e4046c49230dea0d4f991c4cd1759327f.tar.bz2
linux-7d43f51e4046c49230dea0d4f991c4cd1759327f.zip
kselftest/alsa: pcm-test: Decrease stream duration from 4 to 2 seconds
Currently test_pcm_time() streams audio on each PCM with each configuration for 4 seconds. This time can add up, and with the current 45 second kselftest timeout, some machines like mt8192-asurada-spherion can't even run to completion. Lower the duration to 2 seconds to cut the test duration in half, without reducing the test coverage. Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com> Link: https://lore.kernel.org/r/20230620220839.2215057-3-nfraprado@collabora.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/alsa/pcm-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/alsa/pcm-test.c b/tools/testing/selftests/alsa/pcm-test.c
index 9384aebae99b..2f5e3c462194 100644
--- a/tools/testing/selftests/alsa/pcm-test.c
+++ b/tools/testing/selftests/alsa/pcm-test.c
@@ -258,7 +258,7 @@ static void test_pcm_time(struct pcm_data *data, enum test_class class,
const char *test_name, snd_config_t *pcm_cfg)
{
char name[64], key[128], msg[256];
- const int duration_s = 4, margin_ms = 100;
+ const int duration_s = 2, margin_ms = 100;
const int duration_ms = duration_s * 1000;
const char *cs;
int i, err;