mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-16 12:28:51 +00:00
Insure that the same output occurs when multiprocessing is disabled.
This commit is contained in:
@@ -74,12 +74,24 @@ void Screen1()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" );
|
puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This one case is different if MP is enabled/disabled.
|
||||||
|
*/
|
||||||
|
|
||||||
status = rtems_task_ident( 100, 2, &Junk_id );
|
status = rtems_task_ident( 100, 2, &Junk_id );
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
fatal_directive_status(
|
fatal_directive_status(
|
||||||
status,
|
status,
|
||||||
RTEMS_INVALID_NODE,
|
RTEMS_INVALID_NODE,
|
||||||
"rtems_task_ident with illegal node"
|
"rtems_task_ident with illegal node"
|
||||||
);
|
);
|
||||||
|
#else
|
||||||
|
fatal_directive_status(
|
||||||
|
status,
|
||||||
|
RTEMS_INVALID_NAME,
|
||||||
|
"rtems_task_ident with illegal node"
|
||||||
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" );
|
puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" );
|
||||||
|
|
||||||
status = rtems_task_restart( 100, 0 );
|
status = rtems_task_restart( 100, 0 );
|
||||||
|
|||||||
@@ -200,6 +200,12 @@ void Screen3()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY" );
|
puts( "TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_task_create(
|
status = rtems_task_create(
|
||||||
task_name,
|
task_name,
|
||||||
4,
|
4,
|
||||||
@@ -213,5 +219,6 @@ void Screen3()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_task_create of global task in a single cpu system"
|
"rtems_task_create of global task in a single cpu system"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,12 @@ void Screen5()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER" );
|
puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_semaphore_create(
|
status = rtems_semaphore_create(
|
||||||
Semaphore_name[ 3 ],
|
Semaphore_name[ 3 ],
|
||||||
1,
|
1,
|
||||||
@@ -128,6 +134,7 @@ void Screen5()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_semaphore_create of mp not configured"
|
"rtems_semaphore_create of mp not configured"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_semaphore_delete( 100 );
|
status = rtems_semaphore_delete( 100 );
|
||||||
|
|||||||
@@ -46,8 +46,14 @@ void Screen7()
|
|||||||
RTEMS_INVALID_NAME,
|
RTEMS_INVALID_NAME,
|
||||||
"rtems_message_queue_create with illegal name"
|
"rtems_message_queue_create with illegal name"
|
||||||
);
|
);
|
||||||
|
|
||||||
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME" );
|
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_message_queue_create(
|
status = rtems_message_queue_create(
|
||||||
Queue_name[ 1 ],
|
Queue_name[ 1 ],
|
||||||
1,
|
1,
|
||||||
@@ -60,6 +66,7 @@ void Screen7()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_message_queue_create of mp not configured"
|
"rtems_message_queue_create of mp not configured"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_message_queue_create(
|
status = rtems_message_queue_create(
|
||||||
|
|||||||
@@ -88,6 +88,12 @@ void Screen11()
|
|||||||
"TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE"
|
"TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_partition_create(
|
status = rtems_partition_create(
|
||||||
Partition_name[ 1 ],
|
Partition_name[ 1 ],
|
||||||
Partition_good_area,
|
Partition_good_area,
|
||||||
@@ -101,6 +107,7 @@ void Screen11()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_partition_create of global"
|
"rtems_partition_create of global"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_partition_create(
|
status = rtems_partition_create(
|
||||||
|
|||||||
@@ -74,12 +74,24 @@ void Screen1()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" );
|
puts( "TA1 - rtems_task_ident - local RTEMS_INVALID_NAME" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This one case is different if MP is enabled/disabled.
|
||||||
|
*/
|
||||||
|
|
||||||
status = rtems_task_ident( 100, 2, &Junk_id );
|
status = rtems_task_ident( 100, 2, &Junk_id );
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
fatal_directive_status(
|
fatal_directive_status(
|
||||||
status,
|
status,
|
||||||
RTEMS_INVALID_NODE,
|
RTEMS_INVALID_NODE,
|
||||||
"rtems_task_ident with illegal node"
|
"rtems_task_ident with illegal node"
|
||||||
);
|
);
|
||||||
|
#else
|
||||||
|
fatal_directive_status(
|
||||||
|
status,
|
||||||
|
RTEMS_INVALID_NAME,
|
||||||
|
"rtems_task_ident with illegal node"
|
||||||
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" );
|
puts( "TA1 - rtems_task_ident - RTEMS_INVALID_NODE" );
|
||||||
|
|
||||||
status = rtems_task_restart( 100, 0 );
|
status = rtems_task_restart( 100, 0 );
|
||||||
|
|||||||
@@ -200,6 +200,12 @@ void Screen3()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY" );
|
puts( "TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_task_create(
|
status = rtems_task_create(
|
||||||
task_name,
|
task_name,
|
||||||
4,
|
4,
|
||||||
@@ -213,5 +219,6 @@ void Screen3()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_task_create of global task in a single cpu system"
|
"rtems_task_create of global task in a single cpu system"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,6 +116,12 @@ void Screen5()
|
|||||||
);
|
);
|
||||||
puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER" );
|
puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_semaphore_create(
|
status = rtems_semaphore_create(
|
||||||
Semaphore_name[ 3 ],
|
Semaphore_name[ 3 ],
|
||||||
1,
|
1,
|
||||||
@@ -128,6 +134,7 @@ void Screen5()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_semaphore_create of mp not configured"
|
"rtems_semaphore_create of mp not configured"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_semaphore_delete( 100 );
|
status = rtems_semaphore_delete( 100 );
|
||||||
|
|||||||
@@ -46,8 +46,14 @@ void Screen7()
|
|||||||
RTEMS_INVALID_NAME,
|
RTEMS_INVALID_NAME,
|
||||||
"rtems_message_queue_create with illegal name"
|
"rtems_message_queue_create with illegal name"
|
||||||
);
|
);
|
||||||
|
|
||||||
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME" );
|
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_INVALID_NAME" );
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_message_queue_create(
|
status = rtems_message_queue_create(
|
||||||
Queue_name[ 1 ],
|
Queue_name[ 1 ],
|
||||||
1,
|
1,
|
||||||
@@ -60,6 +66,7 @@ void Screen7()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_message_queue_create of mp not configured"
|
"rtems_message_queue_create of mp not configured"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_message_queue_create(
|
status = rtems_message_queue_create(
|
||||||
|
|||||||
@@ -88,6 +88,12 @@ void Screen11()
|
|||||||
"TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE"
|
"TA1 - rtems_partition_create - length < buffer size - RTEMS_INVALID_SIZE"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The check for an object being global is only made if
|
||||||
|
* multiprocessing is enabled.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
status = rtems_partition_create(
|
status = rtems_partition_create(
|
||||||
Partition_name[ 1 ],
|
Partition_name[ 1 ],
|
||||||
Partition_good_area,
|
Partition_good_area,
|
||||||
@@ -101,6 +107,7 @@ void Screen11()
|
|||||||
RTEMS_MP_NOT_CONFIGURED,
|
RTEMS_MP_NOT_CONFIGURED,
|
||||||
"rtems_partition_create of global"
|
"rtems_partition_create of global"
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
|
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
|
||||||
|
|
||||||
status = rtems_partition_create(
|
status = rtems_partition_create(
|
||||||
|
|||||||
Reference in New Issue
Block a user