From 99fbb6080cad410d5f098797e611b2289e960eda Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 21 Jul 2009 18:26:27 +0000 Subject: [PATCH] 2009-07-21 Joel Sherrill * spintrcritical06/init.c: Clean up. * spintrcritical09/init.c: Adjust clock tick so it works on erc32. * spintrcritical09/spintrcritical09.scn: Fill in. --- testsuites/sptests/ChangeLog | 6 ++++++ testsuites/sptests/spintrcritical06/init.c | 11 ++--------- testsuites/sptests/spintrcritical09/init.c | 3 ++- .../sptests/spintrcritical09/spintrcritical09.scn | 6 ++++++ 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index f7777ef17f..1bf2d6a9ba 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,9 @@ +2009-07-21 Joel Sherrill + + * spintrcritical06/init.c: Clean up. + * spintrcritical09/init.c: Adjust clock tick so it works on erc32. + * spintrcritical09/spintrcritical09.scn: Fill in. + 2009-07-21 Joel Sherrill * spintrcritical06/init.c: Add comment to indicate test is not finished diff --git a/testsuites/sptests/spintrcritical06/init.c b/testsuites/sptests/spintrcritical06/init.c index 6500561a28..7c98d53943 100644 --- a/testsuites/sptests/spintrcritical06/init.c +++ b/testsuites/sptests/spintrcritical06/init.c @@ -61,7 +61,6 @@ rtems_timer_service_routine test_release_from_isr( void *arg ) { -printk("r"); (void) rtems_task_restart( Secondary_task_id, 1 ); } @@ -71,19 +70,14 @@ rtems_task Secondary_task( { rtems_status_code status; -#if 0 - if ( arg ) { - printk("f"); + if ( arg ) (void) rtems_semaphore_flush( Semaphore ); - } -#endif - #if 0 && defined(PRIORITY_NO_TIMEOUT_REVERSE) + #if defined(PRIORITY_NO_TIMEOUT_REVERSE) status = rtems_task_resume( Main_task ); directive_failed( status, "rtems_task_resume" ); #endif - printk("O"); status = rtems_semaphore_obtain( Semaphore, RTEMS_DEFAULT_OPTIONS, @@ -144,7 +138,6 @@ rtems_task Init( directive_failed( status, "rtems_task_suspend" ); #endif -printk("o"); status = rtems_semaphore_obtain( Semaphore, RTEMS_DEFAULT_OPTIONS, diff --git a/testsuites/sptests/spintrcritical09/init.c b/testsuites/sptests/spintrcritical09/init.c index 78a0fcb9e0..565c8c84d7 100644 --- a/testsuites/sptests/spintrcritical09/init.c +++ b/testsuites/sptests/spintrcritical09/init.c @@ -67,6 +67,7 @@ rtems_task Init( puts( "\n\n*** TEST INTERRUPT CRITICAL SECTION 09 ***" ); + puts( "Init - Test may not be able to detect case is hit reliably" ); puts( "Init - Trying to generate timeout from ISR while blocking" ); sc = rtems_semaphore_create( rtems_build_name( 'S', 'M', '1', ' ' ), @@ -117,7 +118,7 @@ rtems_task Init( #define CONFIGURE_MAXIMUM_TIMERS 1 #define CONFIGURE_MAXIMUM_SEMAPHORES 1 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE -#define CONFIGURE_MICROSECONDS_PER_TICK 500 +#define CONFIGURE_MICROSECONDS_PER_TICK 1000 #define CONFIGURE_INIT #include diff --git a/testsuites/sptests/spintrcritical09/spintrcritical09.scn b/testsuites/sptests/spintrcritical09/spintrcritical09.scn index e69de29bb2..6740440a4f 100644 --- a/testsuites/sptests/spintrcritical09/spintrcritical09.scn +++ b/testsuites/sptests/spintrcritical09/spintrcritical09.scn @@ -0,0 +1,6 @@ +*** TEST INTERRUPT CRITICAL SECTION 09 *** +Init - Trying to generate timeout from ISR while blocking +Init - Test may not be able to detect case is hit reliably +Support - rtems_timer_create - creating timer 1 +Init - Trying to generate timeout from ISR while blocking +*** END OF TEST INTERRUPT CRITICAL SECTION 09 ***