build-sys: Build atomic-test only if pthread_setaffinity_np() is available

The function seems to be essential to the test, so the test has to be
disabled entirely if pthread_setaffinity_np() is not available.

Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/850
This commit is contained in:
Tanu Kaskinen 2020-08-04 14:42:59 +03:00
parent 4d1e568619
commit 99db8038de
2 changed files with 9 additions and 3 deletions

View file

@ -296,8 +296,7 @@ TESTS_norun = \
sig2str-test \
stripnul \
echo-cancel-test \
lo-latency-test \
atomic-test
lo-latency-test
# These tests need a running pulseaudio daemon
TESTS_daemon = \
@ -316,6 +315,11 @@ TESTS_default += \
usergroup-test
endif
if HAVE_PTHREAD_SETAFFINITY_NP
TESTS_norun += \
atomic-test
endif
if HAVE_SYS_EVENTFD_H
TESTS_default += \
srbchannel-test