Fixed size cpusetf patch
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Dec 17 14:42:32 UTC 2013
On 2013-12-16 20:17, Jennifer Averett wrote:
> +static void test_cpu_fill_case_1(void)
> +{
> + size_t i;
> +
> + /*
> + * Set to all zeros and verify
> + */
> + puts( "Exercise CPU_FILL, CPU_ISSET, and CPU_COUNT" );
> + CPU_FILL(&set1);
> +
> + /* test if all bits clear */
> + for (i=0 ; i<CPU_SETSIZE ; i++) {
> + rtems_test_assert( CPU_ISSET(i, &set1) == 1 );
> + }
> + rtems_test_assert( CPU_COUNT(&set1) == _NCPUBITS );
> +}
This test case doesn't test the behaviour described in the Linux CPU_SET(3) man
page:
http://man7.org/linux/man-pages/man3/CPU_SET.3.html
It should be "rtems_test_assert( CPU_COUNT(&set1) == CPU_SETSIZE );".
It would be nice if the test program runs on Linux as well to make sure we are
compatible.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list