diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-16 07:28:58 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-06-18 07:09:34 +0200 |
commit | 46c23871813618e7a16050068041b3d33551cd0d (patch) | |
tree | c26f000d0857387806330031de7d9e91fe1d4aee /testsuites/sptests/sppartition_err01 | |
parent | i386/pc: Initialise the printk serial port on first use (diff) | |
download | rtems-46c23871813618e7a16050068041b3d33551cd0d.tar.bz2 |
rtems: Remove RTEMS_MP_NOT_CONFIGURED error
Some objects can be created with a local or global scope in a
multiprocessing network. In non-multiprocessing configurations setting
the scope to local or global had no effect since such a system can be
viewed as a multiprocessing network with just one node. One and all
nodes is the same in such a network. However, if multiprocessing was
configured, creation of a global object in a single node network
resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error
condition for symmetry to the non-multiprocessing setup. This is in line
with the task affinity behaviour in SMP systems.
Update #4005.
Diffstat (limited to 'testsuites/sptests/sppartition_err01')
-rw-r--r-- | testsuites/sptests/sppartition_err01/init.c | 22 | ||||
-rw-r--r-- | testsuites/sptests/sppartition_err01/sppartition_err01.scn | 1 |
2 files changed, 0 insertions, 23 deletions
diff --git a/testsuites/sptests/sppartition_err01/init.c b/testsuites/sptests/sppartition_err01/init.c index 39ee700daa..39373852fb 100644 --- a/testsuites/sptests/sppartition_err01/init.c +++ b/testsuites/sptests/sppartition_err01/init.c @@ -126,28 +126,6 @@ void test_partition_errors(void) ); } - /* - * The check for an object being global is only made if - * multiprocessing is enabled. - */ - -#if defined(RTEMS_MULTIPROCESSING) - status = rtems_partition_create( - Partition_name[ 1 ], - Partition_good_area, - 128, - 64, - RTEMS_GLOBAL, - &junk_id - ); - fatal_directive_status( - status, - RTEMS_MP_NOT_CONFIGURED, - "rtems_partition_create of global" - ); -#endif - puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" ); - #if defined(_C3x) || defined(_C4x) puts( "TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS - SKIPPED" ); #else diff --git a/testsuites/sptests/sppartition_err01/sppartition_err01.scn b/testsuites/sptests/sppartition_err01/sppartition_err01.scn index 2b010ee6d4..01319353e7 100644 --- a/testsuites/sptests/sppartition_err01/sppartition_err01.scn +++ b/testsuites/sptests/sppartition_err01/sppartition_err01.scn @@ -4,7 +4,6 @@ TA1 - rtems_partition_create - length - RTEMS_INVALID_SIZE TA1 - rtems_partition_create - buffer size - RTEMS_INVALID_SIZE TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE TA1 - rtems_partition_create - buffer size < overhead - RTEMS_INVALID_SIZE -TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED TA1 - rtems_partition_create - RTEMS_INVALID_ADDRESS TA1 - rtems_partition_create - RTEMS_INVALID_SIZE TA1 - rtems_partition_delete - unknown RTEMS_INVALID_ID |