Changeset a319ebef in rtems for testsuites/mptests/mp07/task1.c


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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.