pulseaudio/src/tests
Faidon Liambotis 2afecd637c tests: fix use of uninitialized variable cpu_info
On cpu-volume-test, cpu_info is initialized only on i386/amd64 systems,
and otherwise passed on to pa_cpu_init_orc() uninitialized.

If one was unlucky enough, they could end up with cpu_info.cpu_type ==
PA_CPU_X86 on a non-x86 system, and use and test the Orc codepath
without that being functional, and thus with the test failing.

This has been observed in the wild on the ppc64el Debian buildds. See
Debian bug #982740 for more context.

Define cpu_info here in the same way as in other tests.

Signed-off-by: Faidon Liambotis <paravoid@debian.org>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/511>
2021-03-01 15:02:11 +00:00
..
alsa-mixer-path-test.c alsa-mixer: Respect XDG base directory spec when loading path configs 2020-12-14 19:25:12 +00:00
alsa-time-test.c alsa: remove double calls of snd_pcm_prepare() 2017-01-19 03:00:45 +02:00
asyncmsgq-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
asyncq-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
atomic-test.c atomic-test: unbreak on FreeBSD (cpuset_t) 2021-01-18 16:33:53 +00:00
channelmap-test.c tests: modify channelmap-tets to use 'check' framework 2012-08-20 07:05:59 +05:30
close-test.c add a small test program for pa_close_all() 2008-05-18 19:12:59 +00:00
connect-stress.c pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
core-util-test.c core-util-test: Test pa_atou64() and pa_atoi64() 2020-12-03 14:41:39 +00:00
cpu-mix-test.c Remove newline at end of log messages 2016-08-16 07:03:25 +02:00
cpu-remap-test.c tests: cpu-remap-test.c: fix memory leaks 2020-07-21 14:57:05 +03:00
cpu-sconv-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
cpu-volume-test.c tests: fix use of uninitialized variable cpu_info 2021-03-01 15:02:11 +00:00
cpulimit-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
extended-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
flist-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
format-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
get-binary-name-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
gtk-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
hashmap-test.c tests: hashmap-test.c: fix memory leak 2020-07-21 14:56:59 +03:00
hook-list-test.c tests: modify hook-list-test to use 'check' framework 2012-08-20 07:05:59 +05:30
interpol-test.c Remove newline at end of log messages 2016-08-16 07:03:25 +02:00
ipacl-test.c tests: modify ipacl-test to use 'check' framework 2012-08-20 07:06:00 +05:30
json-test.c json-test: Fix Coverity warning 2017-10-09 10:39:45 +02:00
ladspa-dbus.py tests: Update ladspa-dbus to Python 3 2021-02-01 16:10:12 +00:00
lfe-filter-test.c Remove newline at end of log messages 2016-08-16 07:03:25 +02:00
lo-latency-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
lo-test-util.c core: Expose API to elevate a thread to realtime priority 2018-06-21 06:29:32 +05:30
lo-test-util.h update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
lock-autospawn-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
mainloop-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
Makefile build-sys: readd stub makefiles to subdirectories to make building with emacs easier 2012-05-15 14:17:58 +02:00
mcalign-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
memblock-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
memblockq-test.c memblockq-test: fix incorrect assumption of pa_memblockq_pop_missing() behaviour 2017-01-03 04:26:30 +02:00
meson.build build-sys: meson: add missing pthread dependency on alsa tests 2021-01-18 16:33:53 +00:00
mix-test.c Remove newline at end of log messages 2016-08-16 07:03:25 +02:00
mult-s16-test.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
once-test.c tests: Fix incompatible pointer type on Debian kfreebsd 2020-11-25 14:54:49 +00:00
pacat-simple.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
parec-simple.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
passthrough-test.c passthrough-test: Add a test for volume set/restore 2018-10-12 19:36:37 +05:30
proplist-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
queue-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
remix-test.c Split the enable-lfe-remixing setting into two 2019-12-10 06:50:59 +00:00
resampler-test.c pulsecore: Specially mark global mempools 2016-04-02 05:53:33 +02:00
rtpoll-test.c rtpoll: Separate out before/after/work callback userdata 2019-11-08 17:39:03 +05:30
rtstutter.c tests: Fix incompatible pointer type on Debian kfreebsd 2020-11-25 14:54:49 +00:00
runtime-test-util.h tests: Extract PA_CPU_TEST* macros to separate header 2013-11-01 15:02:24 +01:00
sig2str-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
sigbus-test.c core: Replace PA_PAGE_SIZE with pa_page_size() 2016-09-02 14:52:53 +02:00
smoother-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
srbchannel-test.c pstream: Support memfd blocks transport 2016-04-02 05:55:14 +02:00
stripnul.c tests: Assert granularity range in stripnul.c 2016-09-02 14:52:53 +02:00
strlist-test.c Rename functions with "tostring" in the name to one with "to_string" to conform with the convention. 2015-09-25 17:29:02 +05:30
sync-playback.c build-sys: Move to compiling with C11 support 2016-02-25 09:09:13 +05:30
test-daemon.meson.sh meson: Enable (almost) all tests 2019-06-08 11:56:56 +02:00
test-daemon.sh test-daemon: No need to define dl-search-path 2019-06-08 11:57:00 +02:00
thread-mainloop-test.c thread-mainloop: Add API for running a callback unlocked 2019-03-31 09:18:37 +00:00
thread-test.c thread-test: fix deadlock 2017-01-26 07:56:54 +02:00
usergroup-test.c update FSF addresses to FSF web page 2015-01-14 22:20:40 +02:00
utf8-test.c Remove newline at end of log messages 2016-08-16 07:03:25 +02:00
volume-test.c volume-test: Allow rounding without having to allow a random number of errors 2018-10-13 05:14:42 +00:00
volume-ui.py tests: show dB in volume-ui.py 2009-05-22 01:31:26 +02:00