forked from Imagelibrary/rtems
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
* sp11/sp11.scn, sp11/task1.c: Add test case for receiving all events no wait but the condition is only partially satisfied.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-07-27 Joel Sherrill <joel.sherrilL@OARcorp.com>
|
||||
|
||||
* sp11/sp11.scn, sp11/task1.c: Add test case for receiving all events
|
||||
no wait but the condition is only partially satisfied.
|
||||
|
||||
2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* Makefile.am, configure.ac: Add test to extract a task blocked with
|
||||
|
||||
@@ -71,4 +71,6 @@ TA1 - set time forwards (leave a timer)
|
||||
TA1 - RTEMS_EVENT_10 received
|
||||
TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 100 ticks
|
||||
TA1 - rtems_event_send - sending RTEMS_EVENT_11 to self in 200 ticks
|
||||
TA1 - rtems_event_send - send RTEMS_EVENT_4 to self
|
||||
TA1 - rtems_event_receive - RTEMS_EVENT_4 AND RTEMS_EVENT_5 - UNSATISFIED
|
||||
*** END OF TEST 11 ***
|
||||
|
||||
@@ -361,8 +361,10 @@ rtems_test_pause();
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&eventout
|
||||
);
|
||||
if ( eventout ) printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
|
||||
else puts( "TA1 - no events received" );
|
||||
if ( eventout )
|
||||
printf( "ERROR -0x%08" PRIxrtems_event_set " events received\n", eventout );
|
||||
else
|
||||
puts( "TA1 - no events received" );
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_UNSATISFIED,
|
||||
@@ -404,6 +406,24 @@ rtems_test_pause();
|
||||
);
|
||||
directive_failed( status, "rtems_timer_fire_after 200 ticks" );
|
||||
|
||||
/***** *****/
|
||||
puts( "TA1 - rtems_event_send - send RTEMS_EVENT_4 to self" );
|
||||
status = rtems_event_send( RTEMS_SELF, RTEMS_EVENT_4 );
|
||||
directive_failed( status, "rtems_event_send" );
|
||||
|
||||
eventout = 0;
|
||||
puts(
|
||||
"TA1 - rtems_event_receive - RTEMS_EVENT_4 AND RTEMS_EVENT_5 - UNSATISFIED"
|
||||
);
|
||||
status = rtems_event_receive(
|
||||
RTEMS_EVENT_4 | RTEMS_EVENT_5,
|
||||
RTEMS_NO_WAIT | RTEMS_EVENT_ALL,
|
||||
RTEMS_NO_TIMEOUT,
|
||||
&eventout
|
||||
);
|
||||
fatal_directive_status( status, RTEMS_UNSATISFIED, "rtems_event_receive" );
|
||||
/***** *****/
|
||||
|
||||
puts( "*** END OF TEST 11 ***" );
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user