From 4b7c77bce370d2ff88c9fb9036e5f3a3b1da9cb7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 26 Apr 2021 11:00:24 +0200 Subject: rtems: Change rtems_task_get_affinity() status In case the processor set is not large enough to contain the processor affinity set of the task return RTEMS_INVALID_SIZE instead of RTEMS_INVALID_NUMBER. This is more in line with other directives since the issue is related to the size of an object. Close #4393. --- testsuites/smptests/smpaffinity01/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testsuites/smptests/smpaffinity01/init.c') diff --git a/testsuites/smptests/smpaffinity01/init.c b/testsuites/smptests/smpaffinity01/init.c index 5d79259e9f..9ec687d816 100644 --- a/testsuites/smptests/smpaffinity01/init.c +++ b/testsuites/smptests/smpaffinity01/init.c @@ -85,7 +85,7 @@ void Validate_getaffinity_errors(void) "Init - rtems_task_get_affinity - Invalid cpusetsize - RTEMS_INVALID_NUMBER" ); sc = rtems_task_get_affinity( Init_id, 1, &cpuset ); - rtems_test_assert( sc == RTEMS_INVALID_NUMBER ); + rtems_test_assert( sc == RTEMS_INVALID_SIZE ); /* Verify rtems_task_get_affinity validates cpuset */ puts("Init - rtems_task_get_affinity - Invalid cpuset - RTEMS_INVALID_ADDRESS"); -- cgit v1.2.3