mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Report error if setaffinity wrapper fails (Bug 32040)
Previously if the setaffinity wrapper failed the rest of the subtest would not execute and the current subtest would be reported as passing. Now if the setaffinity wrapper fails the subtest is correctly reported as faling. Tested manually by changing the conditions of the affinity call including setting size to zero, or checking the wrong condition. No regressions on x86_64. Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
parent
3e1d8d1d1d
commit
b22923abb0
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ test_size (const struct conf *conf, size_t size)
|
|||
if (setaffinity (kernel_size, initial_set) < 0)
|
||||
{
|
||||
printf ("error: size %zu: setaffinity: %m\n", size);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/* Use one-CPU set to test switching between CPUs. */
|
||||
|
|
Loading…
Add table
Reference in a new issue