summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-05 14:26:01 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-05-06 08:03:58 +0200
commit48898b3a5d27a73a65f2b7520ceb53005d45c984 (patch)
tree8ff29d751f12f1b4de4c7f256d8846bc3db7b957 /testsuites/sptests
parentrtems: rtems_scheduler_ident_by_processor_set() (diff)
downloadrtems-48898b3a5d27a73a65f2b7520ceb53005d45c984.tar.bz2
rtems: rtems_scheduler_get_processor_set() status
In case the processor set is not large enough to contain the processor set owned by the scheduler 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 #4401.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/spscheduler01/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/sptests/spscheduler01/init.c b/testsuites/sptests/spscheduler01/init.c
index 94ecfe4ef5..7b24dae5b0 100644
--- a/testsuites/sptests/spscheduler01/init.c
+++ b/testsuites/sptests/spscheduler01/init.c
@@ -602,7 +602,7 @@ static void test_scheduler_get_processors(void)
rtems_test_assert(sc == RTEMS_INVALID_ID);
sc = rtems_scheduler_get_processor_set(scheduler_id, 0, &cpuset);
- rtems_test_assert(sc == RTEMS_INVALID_NUMBER);
+ rtems_test_assert(sc == RTEMS_INVALID_SIZE);
sc = rtems_scheduler_get_processor_set(scheduler_id, sizeof(cpuset), &cpuset);
rtems_test_assert(sc == RTEMS_SUCCESSFUL);