Insure that the same output occurs when multiprocessing is disabled.

This commit is contained in:
Joel Sherrill
1998-12-03 21:57:50 +00:00
parent 6b9450d1a6
commit 012bb569b3
10 changed files with 82 additions and 2 deletions

View File

@@ -74,12 +74,24 @@ void Screen1()
);
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 );
#if defined(RTEMS_MULTIPROCESSING)
fatal_directive_status(
status,
RTEMS_INVALID_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" );
status = rtems_task_restart( 100, 0 );

View File

@@ -200,6 +200,12 @@ void Screen3()
);
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(
task_name,
4,
@@ -213,5 +219,6 @@ void Screen3()
RTEMS_MP_NOT_CONFIGURED,
"rtems_task_create of global task in a single cpu system"
);
#endif
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
}

View File

@@ -116,6 +116,12 @@ void Screen5()
);
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(
Semaphore_name[ 3 ],
1,
@@ -128,6 +134,7 @@ void Screen5()
RTEMS_MP_NOT_CONFIGURED,
"rtems_semaphore_create of mp not configured"
);
#endif
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_semaphore_delete( 100 );

View File

@@ -46,8 +46,14 @@ void Screen7()
RTEMS_INVALID_NAME,
"rtems_message_queue_create with illegal 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(
Queue_name[ 1 ],
1,
@@ -60,6 +66,7 @@ void Screen7()
RTEMS_MP_NOT_CONFIGURED,
"rtems_message_queue_create of mp not configured"
);
#endif
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_message_queue_create(

View File

@@ -88,6 +88,12 @@ void Screen11()
"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(
Partition_name[ 1 ],
Partition_good_area,
@@ -101,6 +107,7 @@ void Screen11()
RTEMS_MP_NOT_CONFIGURED,
"rtems_partition_create of global"
);
#endif
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_partition_create(

View File

@@ -74,12 +74,24 @@ void Screen1()
);
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 );
#if defined(RTEMS_MULTIPROCESSING)
fatal_directive_status(
status,
RTEMS_INVALID_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" );
status = rtems_task_restart( 100, 0 );

View File

@@ -200,6 +200,12 @@ void Screen3()
);
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(
task_name,
4,
@@ -213,5 +219,6 @@ void Screen3()
RTEMS_MP_NOT_CONFIGURED,
"rtems_task_create of global task in a single cpu system"
);
#endif
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
}

View File

@@ -116,6 +116,12 @@ void Screen5()
);
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(
Semaphore_name[ 3 ],
1,
@@ -128,6 +134,7 @@ void Screen5()
RTEMS_MP_NOT_CONFIGURED,
"rtems_semaphore_create of mp not configured"
);
#endif
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_semaphore_delete( 100 );

View File

@@ -46,8 +46,14 @@ void Screen7()
RTEMS_INVALID_NAME,
"rtems_message_queue_create with illegal 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(
Queue_name[ 1 ],
1,
@@ -60,6 +66,7 @@ void Screen7()
RTEMS_MP_NOT_CONFIGURED,
"rtems_message_queue_create of mp not configured"
);
#endif
puts( "TA1 - rtems_message_queue_create - Q 1 - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_message_queue_create(

View File

@@ -88,6 +88,12 @@ void Screen11()
"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(
Partition_name[ 1 ],
Partition_good_area,
@@ -101,6 +107,7 @@ void Screen11()
RTEMS_MP_NOT_CONFIGURED,
"rtems_partition_create of global"
);
#endif
puts( "TA1 - rtems_partition_create - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_partition_create(