Changeset a319ebef in rtems


Ignore:
Timestamp:
Sep 5, 2008, 2:41:37 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
7eb312d5
Parents:
cf594ad7
Message:

2008-09-05 Joel Sherrill <joel.sherrill@…>

  • mp03/delay.c, mp06/task1.c, mp06/node2/mp06-node2.scn, mp07/task1.c: Updating and fixing while running them on psim.
Location:
testsuites/mptests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/mptests/ChangeLog

    rcf594ad7 ra319ebef  
     12008-09-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * mp03/delay.c, mp06/task1.c, mp06/node2/mp06-node2.scn, mp07/task1.c:
     4        Updating and fixing while running them on psim.
     5
    162008-09-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/mptests/mp03/delay.c

    rcf594ad7 ra319ebef  
    2727
    2828  status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_16 );
    29   directive_failed_with_level( status, "rtems_event_send", 1 );
     29  if ( status ) printk( "Delayed_send_event failed %d\n", status );
     30  // directive_failed_with_level( status, "rtems_event_send", 1 );
    3031}
  • testsuites/mptests/mp06/node2/mp06-node2.scn

    rcf594ad7 ra319ebef  
    88....................................................
    99....................................................
     10Flushing RTEMS_EVENT_16
     11Waiting for RTEMS_EVENT_16
    1012rtems_event_receive - correctly returned RTEMS_TIMEOUT
    1113*** END OF TEST 6 ***
  • testsuites/mptests/mp06/task1.c

    rcf594ad7 ra319ebef  
    162162
    163163  if ( Multiprocessing_configuration.node == 2 ) {
     164    /* Flush events */
     165    puts( "Flushing RTEMS_EVENT_16" );
     166    (void) rtems_event_receive(RTEMS_EVENT_16, RTEMS_NO_WAIT, 0, &event_out);
     167
     168    puts( "Waiting for RTEMS_EVENT_16" );
    164169    status = rtems_event_receive(
    165170      RTEMS_EVENT_16,
  • testsuites/mptests/mp07/task1.c

    rcf594ad7 ra319ebef  
    7171  directive_failed( status, "rtems_timer_fire_after" );
    7272
    73   while ( Stop_Test == false ) {
     73  while ( true ) {
    7474    for ( count=DOT_COUNT ; count && (Stop_Test == false) ; count-- ) {
    7575      status = rtems_event_receive(
    7676        RTEMS_EVENT_16,
    7777        RTEMS_DEFAULT_OPTIONS,
    78         RTEMS_NO_TIMEOUT,
     78        TICKS_PER_SECOND,
    7979        &event_out
    8080      );
    8181      if ( status == RTEMS_TIMEOUT ) {
    82         puts( "\nTA1 - RTEMS_TIMEOUT .. probably OK if the other node exits" );
     82        printf("\nTA1 - RTEMS_TIMEOUT .. probably OK if the other node exits");
     83        Stop_Test = true;
    8384        break;
    8485      } else
     
    8889      directive_failed( status, "rtems_event_send" );
    8990    }
     91    if ( Stop_Test )
     92       break;
    9093    put_dot('.');
    9194  }
Note: See TracChangeset for help on using the changeset viewer.