test: Add pcm-multi-thread program

A simple multi-thread stress test for PCM is added to test
subdirectory.  It can perform various PCM update function in the
worker threads while reading/writing the data in the main thread.
It can help catching the unexpected error or blockage.  For example,
running the capture test with a softvol plugin will lead to the assert
due to the races.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2016-07-02 10:03:15 +02:00
parent 97fce66077
commit 147093ac5b
2 changed files with 265 additions and 1 deletions

View file

@ -3,7 +3,7 @@ SUBDIRS=. lsb
check_PROGRAMS=control pcm pcm_min latency seq \
playmidi1 timer rawmidi midiloop \
oldapi queue_timer namehint client_event_filter \
chmap audio_time user-ctl-element-set
chmap audio_time user-ctl-element-set pcm-multi-thread
control_LDADD=../src/libasound.la
pcm_LDADD=../src/libasound.la
@ -23,6 +23,7 @@ client_event_filter_LDADD=../src/libasound.la
code_CFLAGS=-Wall -pipe -g -O2
chmap_LDADD=../src/libasound.la
audio_time_LDADD=../src/libasound.la
pcm_multi_thread_LDADD=../src/libasound.la
user_ctl_element_set_LDADD=../src/libasound.la
user_ctl_element_set_CFLAGS=-Wall -g