Ignore:
Timestamp:
Sep 19, 1995, 9:44:33 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c896e8d
Parents:
d434b8d6
Message:

Modifications from Tony Bennett accepted to tune this test a little.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/mp14/pttask1.c

    rd434b8d6 r2122a0b  
    3030  rtems_unsigned32   count;
    3131  rtems_status_code  status;
     32  rtems_unsigned32   yield_count;
    3233  void              *buffer;
    3334
     
    4445
    4546    puts( "rtems_partition_ident FAILED!!" );
     47    rtems_task_wake_after(2);
    4648  }
     49
     50  yield_count = 100;
    4751
    4852  while ( Stop_Test == FALSE ) {
     
    5458      directive_failed( status, "rtems_partition_return_buffer" );
    5559
    56       if ( Multiprocessing_configuration.node == 1 ) {
    57         status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
    58         directive_failed( status, "rtems_task_wake_after" );
    59       }
     60      if (Stop_Test == FALSE)
     61        if ( Multiprocessing_configuration.node == 1 && --yield_count == 0 ) {
     62          status = rtems_task_wake_after( 1 );
     63          directive_failed( status, "rtems_task_wake_after" );
     64          yield_count = 100;
     65        }
    6066    }
    6167    put_dot( 'p' );
Note: See TracChangeset for help on using the changeset viewer.