diff options
author | Carlos O'Donell <carlos@redhat.com> | 2024-08-15 08:12:35 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2024-08-15 15:28:48 -0400 |
commit | b22923abb046311ac9097a36b97b9b97342bac44 (patch) | |
tree | d25c3a010ffb2bde606298b8fca1242a46fceda0 /sysdeps/unix/sysv/linux/tst-skeleton-affinity.c | |
parent | 3e1d8d1d1dca24ae90df2ea826a8916896fc7e77 (diff) | |
download | glibc-b22923abb046311ac9097a36b97b9b97342bac44.zip glibc-b22923abb046311ac9097a36b97b9b97342bac44.tar.gz glibc-b22923abb046311ac9097a36b97b9b97342bac44.tar.bz2 |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-skeleton-affinity.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/tst-skeleton-affinity.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c index 31a15b3..2f921ed 100644 --- a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c +++ b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c @@ -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. */ |