mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Modifications from Tony Bennett accepted to tune this test a little.
This commit is contained in:
@@ -54,7 +54,8 @@ rtems_task Test_task(
|
|||||||
|
|
||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_task_ident" );
|
puts( "rtems_task_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if ( Multiprocessing_configuration.node == 1 ) {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ rtems_task Message_queue_task(
|
|||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_message_queue_ident FAILED!!" );
|
puts( "rtems_message_queue_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if ( Multiprocessing_configuration.node == 1 ) {
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ rtems_task Partition_task(
|
|||||||
{
|
{
|
||||||
rtems_unsigned32 count;
|
rtems_unsigned32 count;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
rtems_unsigned32 yield_count;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
|
|
||||||
puts( "Getting ID of partition" );
|
puts( "Getting ID of partition" );
|
||||||
@@ -43,8 +44,11 @@ rtems_task Partition_task(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
puts( "rtems_partition_ident FAILED!!" );
|
puts( "rtems_partition_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yield_count = 100;
|
||||||
|
|
||||||
while ( Stop_Test == FALSE ) {
|
while ( Stop_Test == FALSE ) {
|
||||||
for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
||||||
status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer );
|
status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer );
|
||||||
@@ -53,10 +57,12 @@ rtems_task Partition_task(
|
|||||||
status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer );
|
status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer );
|
||||||
directive_failed( status, "rtems_partition_return_buffer" );
|
directive_failed( status, "rtems_partition_return_buffer" );
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if (Stop_Test == FALSE)
|
||||||
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
||||||
directive_failed( status, "rtems_task_wake_after" );
|
status = rtems_task_wake_after( 1 );
|
||||||
}
|
directive_failed( status, "rtems_task_wake_after" );
|
||||||
|
yield_count = 100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
put_dot( 'p' );
|
put_dot( 'p' );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,10 +40,12 @@ rtems_task Semaphore_task(
|
|||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_semaphore_ident FAILED!!" );
|
puts( "rtems_semaphore_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yield_count = 100;
|
||||||
|
|
||||||
while ( Stop_Test == FALSE ) {
|
while ( Stop_Test == FALSE ) {
|
||||||
yield_count = 100;
|
|
||||||
|
|
||||||
for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
||||||
status = rtems_semaphore_obtain(
|
status = rtems_semaphore_obtain(
|
||||||
@@ -56,12 +58,13 @@ rtems_task Semaphore_task(
|
|||||||
status = rtems_semaphore_release( Semaphore_id[ 1 ] );
|
status = rtems_semaphore_release( Semaphore_id[ 1 ] );
|
||||||
directive_failed( status, "rtems_semaphore_release" );
|
directive_failed( status, "rtems_semaphore_release" );
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
if ( Stop_Test == FALSE )
|
||||||
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
||||||
directive_failed( status, "rtems_task_wake_after" );
|
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
||||||
|
directive_failed( status, "rtems_task_wake_after" );
|
||||||
|
|
||||||
yield_count = 100;
|
yield_count = 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
put_dot( 's' );
|
put_dot( 's' );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,8 @@ rtems_task Test_task(
|
|||||||
|
|
||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_task_ident" );
|
puts( "rtems_task_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if ( Multiprocessing_configuration.node == 1 ) {
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ rtems_task Message_queue_task(
|
|||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_message_queue_ident FAILED!!" );
|
puts( "rtems_message_queue_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if ( Multiprocessing_configuration.node == 1 ) {
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ rtems_task Partition_task(
|
|||||||
{
|
{
|
||||||
rtems_unsigned32 count;
|
rtems_unsigned32 count;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
rtems_unsigned32 yield_count;
|
||||||
void *buffer;
|
void *buffer;
|
||||||
|
|
||||||
puts( "Getting ID of partition" );
|
puts( "Getting ID of partition" );
|
||||||
@@ -43,8 +44,11 @@ rtems_task Partition_task(
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
puts( "rtems_partition_ident FAILED!!" );
|
puts( "rtems_partition_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yield_count = 100;
|
||||||
|
|
||||||
while ( Stop_Test == FALSE ) {
|
while ( Stop_Test == FALSE ) {
|
||||||
for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
for ( count=PARTITION_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
||||||
status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer );
|
status = rtems_partition_get_buffer( Partition_id[ 1 ], &buffer );
|
||||||
@@ -53,10 +57,12 @@ rtems_task Partition_task(
|
|||||||
status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer );
|
status = rtems_partition_return_buffer( Partition_id[ 1 ], buffer );
|
||||||
directive_failed( status, "rtems_partition_return_buffer" );
|
directive_failed( status, "rtems_partition_return_buffer" );
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 ) {
|
if (Stop_Test == FALSE)
|
||||||
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
||||||
directive_failed( status, "rtems_task_wake_after" );
|
status = rtems_task_wake_after( 1 );
|
||||||
}
|
directive_failed( status, "rtems_task_wake_after" );
|
||||||
|
yield_count = 100;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
put_dot( 'p' );
|
put_dot( 'p' );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,10 +40,12 @@ rtems_task Semaphore_task(
|
|||||||
if ( status == RTEMS_SUCCESSFUL )
|
if ( status == RTEMS_SUCCESSFUL )
|
||||||
break;
|
break;
|
||||||
puts( "rtems_semaphore_ident FAILED!!" );
|
puts( "rtems_semaphore_ident FAILED!!" );
|
||||||
|
rtems_task_wake_after(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yield_count = 100;
|
||||||
|
|
||||||
while ( Stop_Test == FALSE ) {
|
while ( Stop_Test == FALSE ) {
|
||||||
yield_count = 100;
|
|
||||||
|
|
||||||
for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
for ( count=SEMAPHORE_DOT_COUNT ; Stop_Test == FALSE && count ; count-- ) {
|
||||||
status = rtems_semaphore_obtain(
|
status = rtems_semaphore_obtain(
|
||||||
@@ -56,12 +58,13 @@ rtems_task Semaphore_task(
|
|||||||
status = rtems_semaphore_release( Semaphore_id[ 1 ] );
|
status = rtems_semaphore_release( Semaphore_id[ 1 ] );
|
||||||
directive_failed( status, "rtems_semaphore_release" );
|
directive_failed( status, "rtems_semaphore_release" );
|
||||||
|
|
||||||
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
if ( Stop_Test == FALSE )
|
||||||
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
|
||||||
directive_failed( status, "rtems_task_wake_after" );
|
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
|
||||||
|
directive_failed( status, "rtems_task_wake_after" );
|
||||||
|
|
||||||
yield_count = 100;
|
yield_count = 100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
put_dot( 's' );
|
put_dot( 's' );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user