<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - once-test fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=96638">96638</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>once-test fails
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>build-system
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>than@redhat.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>The once-test fails for 8.99 versions
Version-Release number of selected component (if applicable):
pulseaudio-8.99.2-1.fc25
FAIL: once-test
===============
Running suite(s): Once
0%: Checks: 1, Failures: 1, Errors: 0
tests/once-test.c:74:F:once:once_test:0: Assertion
'pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask) == 0' failed
FAIL once-test (exit status: 1)
imo it's a bug in the check which just run the threads on all CPUs even some
CPUS are on active, for example on ppc64/ppc64le in koji (fedora build
enviroment)
i did a patch which resolves this issue for me.
diff -up pulseaudio-8.99.2/src/tests/once-test.c.than
pulseaudio-8.99.2/src/tests/once-test.c
--- pulseaudio-8.99.2/src/tests/once-test.c.than 2016-06-22
10:20:57.127583628 -0400
+++ pulseaudio-8.99.2/src/tests/once-test.c 2016-06-22 10:59:38.905573634
-0400
@@ -70,7 +70,7 @@ static void thread_func(void *data) {
#endif
CPU_ZERO(&mask);
- CPU_SET((size_t) (pa_atomic_inc(&i_cpu) % n_cpu), &mask);
+ CPU_SET(pthread_getaffinity_np(pthread_self(), sizeof(mask), &mask),
&mask);
fail_unless(pthread_setaffinity_np(pthread_self(), sizeof(mask), &mask) ==
0);
#endif</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>