diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-21 23:06:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-21 23:06:13 +0000 |
commit | 75a5abaf4a14a68b5960d7507ea8c740f99924a9 (patch) | |
tree | ccb20831839b6864f7cdea51dcd3f6fad2b66ab6 /testsuites/sptests/sp39 | |
parent | 2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-75a5abaf4a14a68b5960d7507ea8c740f99924a9.tar.bz2 |
2009-07-21 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac, sp39/init.c, sp39/sp39.scn: Move
unreliable third case in sp39 to spintrcritical10. New tests to hit
other event synchronization critical sections.
* spintrcritical11/.cvsignore, spintrcritical11/Makefile.am,
spintrcritical11/init.c, spintrcritical11/spintrcritical11.doc,
spintrcritical11/spintrcritical11.scn, spintrcritical12/.cvsignore,
spintrcritical12/Makefile.am, spintrcritical12/spintrcritical12.doc,
spintrcritical12/spintrcritical12.scn: New files.
Diffstat (limited to 'testsuites/sptests/sp39')
-rw-r--r-- | testsuites/sptests/sp39/init.c | 54 | ||||
-rw-r--r-- | testsuites/sptests/sp39/sp39.scn | 2 |
2 files changed, 13 insertions, 43 deletions
diff --git a/testsuites/sptests/sp39/init.c b/testsuites/sptests/sp39/init.c index fb89137583..8d4abb1ffd 100644 --- a/testsuites/sptests/sp39/init.c +++ b/testsuites/sptests/sp39/init.c @@ -92,12 +92,12 @@ rtems_task Init( directive_failed( status, "rtems_timer_create" ); status = rtems_task_create( - 0xa5a5a5a5, - 1, - RTEMS_MINIMUM_STACK_SIZE, - RTEMS_DEFAULT_MODES, - RTEMS_DEFAULT_ATTRIBUTES, - &other_task + 0xa5a5a5a5, + 1, + RTEMS_MINIMUM_STACK_SIZE, + RTEMS_DEFAULT_MODES, + RTEMS_DEFAULT_ATTRIBUTES, + &other_task ); directive_failed( status, "rtems_task_create" ); @@ -129,9 +129,9 @@ rtems_task Init( break; } - printf( - "Event sent from ISR hitting synchronization point has %soccurred\n", - (( case_hit == TRUE ) ? "" : "NOT ") + printf( + "Event sent from ISR hitting synchronization point has %soccurred\n", + (( case_hit == TRUE ) ? "" : "NOT ") ); /* @@ -163,40 +163,12 @@ rtems_task Init( break; } - printf( - "Event sent from ISR (with timeout) hitting synchronization " - "point has %soccurred\n", - (( case_hit == TRUE ) ? "" : "NOT ") + printf( + "Event sent from ISR (with timeout) hitting synchronization " + "point has %soccurred\n", + (( case_hit == TRUE ) ? "" : "NOT ") ); - /* - * Now try for a timeout case - */ - iterations = 0; - case_hit = FALSE; - max = 1; - - puts( - "Run multiple times in attempt to hit event timeout synchronization point" - ); - while (1) { - - for (i=0 ; i<max ; i++ ) - if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_SATISFIED ) - break; - - status = rtems_event_receive( 0x01, RTEMS_DEFAULT_OPTIONS, 1, &out ); - fatal_directive_status( status, RTEMS_TIMEOUT, "event_receive timeout" ); - - if ( ++max > 10240 ) - max = 0; - - /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4L * 1000L * 30L) - break; - - } - puts( "*** END OF TEST 39 ***" ); rtems_test_exit( 0 ); } diff --git a/testsuites/sptests/sp39/sp39.scn b/testsuites/sptests/sp39/sp39.scn index a2e84a7f4b..3d3ab7446a 100644 --- a/testsuites/sptests/sp39/sp39.scn +++ b/testsuites/sptests/sp39/sp39.scn @@ -1,5 +1,3 @@ - - *** TEST 39 *** Event sent from ISR hitting synchronization point has occurred Event timeout hitting synchronization point has occurred |