mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-23 00:59:12 +08:00
@@ -59,7 +59,7 @@ void Validate_setaffinity_errors(void)
|
||||
|
||||
/* Verify rtems_task_set_affinity validates cpusetsize */
|
||||
puts( "Init - rtems_task_set_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER" );
|
||||
sc = rtems_task_set_affinity( Init_id, sizeof(cpu_set_t) * 2, &cpuset );
|
||||
sc = rtems_task_set_affinity( Init_id, 1, &cpuset );
|
||||
rtems_test_assert( sc == RTEMS_INVALID_NUMBER );
|
||||
|
||||
/* Verifyrtems_task_set_affinity validates cpuset */
|
||||
|
||||
@@ -66,7 +66,7 @@ void Validate_setaffinity_errors(void)
|
||||
|
||||
/* Verify pthread_setaffinity_np validates cpusetsize */
|
||||
puts( "Init - pthread_setaffinity_np - Invalid cpusetsize - EINVAL" );
|
||||
sc = pthread_setaffinity_np( Init_id, sizeof(cpu_set_t) * 2, &cpuset );
|
||||
sc = pthread_setaffinity_np( Init_id, 1, &cpuset );
|
||||
rtems_test_assert( sc == EINVAL );
|
||||
|
||||
/* Verify pthread_setaffinity_np validates cpuset */
|
||||
|
||||
Reference in New Issue
Block a user