Changeset cb0997e3 in rtems


Ignore:
Timestamp:
Jul 27, 2010, 7:03:01 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c0d5778
Parents:
0043fd75
Message:

2010-07-27 Joel Sherrill <joel.sherrilL@…>

  • sp11/sp11.scn, sp11/task1.c: Add test case for receiving all events no wait but the condition is only partially satisfied.
Location:
testsuites/sptests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/ChangeLog

    r0043fd75 rcb0997e3  
     12010-07-27      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * sp11/sp11.scn, sp11/task1.c: Add test case for receiving all events
     4        no wait but the condition is only partially satisfied.
     5
    162010-07-26      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/sptests/sp11/sp11.scn

    r0043fd75 rcb0997e3  
    7272TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 100 ticks
    7373TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 200 ticks
     74TA1 - rtems_event_send - send RTEMS_EVENT_4 to self
     75TA1 - rtems_event_receive - RTEMS_EVENT_4 AND RTEMS_EVENT_5 - UNSATISFIED
    7476*** END OF TEST 11 ***
  • testsuites/sptests/sp11/task1.c

    r0043fd75 rcb0997e3  
    362362    &eventout
    363363  );
    364   if ( eventout ) printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
    365   else            puts( "TA1 - no events received" );
     364  if ( eventout )
     365    printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
     366  else
     367    puts( "TA1 - no events received" );
    366368  fatal_directive_status(
    367369    status,
     
    405407  directive_failed( status, "rtems_timer_fire_after 200 ticks" );
    406408
     409  /***** *****/
     410  puts( "TA1 - rtems_event_send - send RTEMS_EVENT_4 to self" );
     411  status = rtems_event_send( RTEMS_SELF, RTEMS_EVENT_4 );
     412  directive_failed( status, "rtems_event_send" );
     413
     414  eventout = 0;
     415  puts(
     416    "TA1 - rtems_event_receive - RTEMS_EVENT_4 AND RTEMS_EVENT_5 - UNSATISFIED"
     417  );
     418  status  = rtems_event_receive(
     419    RTEMS_EVENT_4 | RTEMS_EVENT_5,
     420    RTEMS_NO_WAIT | RTEMS_EVENT_ALL,
     421    RTEMS_NO_TIMEOUT,
     422    &eventout
     423  );
     424  fatal_directive_status( status, RTEMS_UNSATISFIED, "rtems_event_receive" );
     425  /***** *****/
     426
    407427  puts( "*** END OF TEST 11 ***" );
    408428  rtems_test_exit( 0 );
Note: See TracChangeset for help on using the changeset viewer.