meson: Build atomic-test
authorTanu Kaskinen <tanuk@iki.fi>
Tue, 4 Aug 2020 11:44:38 +0000 (14:44 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Tue, 4 Aug 2020 12:09:36 +0000 (15:09 +0300)
The test was missing from the build system.

src/tests/meson.build

index 4f2ca93..f050046 100644 (file)
@@ -160,6 +160,13 @@ if cc.has_header_symbol('signal.h', 'SIGXCPU')
   ]
 endif
 
+if cc.has_function('pthread_setaffinity_np', dependencies : thread_dep)
+  norun_tests += [
+    [ 'atomic-test', 'atomic-test.c',
+      [ check_dep, libpulsecommon_dep ] ]
+  ]
+endif
+
 if alsa_dep.found()
   norun_tests += [
     [ 'alsa-time-test', 'alsa-time-test.c', [ alsa_dep ] ]