[PATCH v2 2/2] posix: Rewrite cpuset tests

Tulio Magno Quites Machado Filho tuliom@ascii.art.br
Fri Feb 7 17:42:50 GMT 2025


Frédéric Bérat <fberat@redhat.com> writes:

> diff --git a/posix/tst-cpuset-skeleton.c b/posix/tst-cpuset-skeleton.c
> +  /* Bad actor access, above CPU number */
> +  LOCAL_CPU_SET (LOCAL_NUM_CPUS + 1, setsz, cpusetp_B);

I expected this line would add LOCAL_NUM_CPUS...

> +  TEST_VERIFY (!LOCAL_CPU_ISSET (LOCAL_NUM_CPUS, setsz, cpusetp_B));

.. just like this line checks if LOCAL_NUM_CPUS is not set.

Othewise, both patches LGTM.

-- 
Tulio Magno


More information about the Libc-alpha mailing list