]> sourceware.org Git - glibc.git/commitdiff
Report error if setaffinity wrapper fails (Bug 32040)
authorCarlos O'Donell <carlos@redhat.com>
Thu, 15 Aug 2024 12:12:35 +0000 (08:12 -0400)
committerCarlos O'Donell <carlos@redhat.com>
Thu, 15 Aug 2024 19:28:48 +0000 (15:28 -0400)
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>
sysdeps/unix/sysv/linux/tst-skeleton-affinity.c

index 31a15b3ad789a287e5d2cc2b034ac2a205a82186..2f921ed397a1a4d91a609b47c27b5b7df0899262 100644 (file)
@@ -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.  */
This page took 0.039791 seconds and 5 git commands to generate.