diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-22 18:30:14 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-01-22 18:30:14 +0000 |
commit | 8b7a7139df5dad320c69ece43481252be902415d (patch) | |
tree | 318b489ce638329360127a810c560991fde461c3 /testsuites/sptests/sp39 | |
parent | 2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-8b7a7139df5dad320c69ece43481252be902415d.tar.bz2 |
2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp39/init.c: Clean up.
Diffstat (limited to 'testsuites/sptests/sp39')
-rw-r--r-- | testsuites/sptests/sp39/init.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/testsuites/sptests/sp39/init.c b/testsuites/sptests/sp39/init.c index e92cdae998..2432291cb5 100644 --- a/testsuites/sptests/sp39/init.c +++ b/testsuites/sptests/sp39/init.c @@ -79,6 +79,7 @@ rtems_task Init( * Test Event send successful from ISR */ case_hit = FALSE; + iterations = 0; max = 1; while (1) { @@ -96,6 +97,10 @@ rtems_task Init( if ( case_hit == TRUE ) break; max += 2; + + /* with our clock tick, this is about 30 seconds */ + if ( ++iterations >= 4 * 1000 * 30) + break; } printf( @@ -121,14 +126,14 @@ rtems_task Init( status = rtems_event_receive( 0x01, RTEMS_DEFAULT_OPTIONS, 1, &out ); fatal_directive_status( status, RTEMS_TIMEOUT, "event_receive timeout" ); - if ( case_hit ) - break; - if ( ++max > 1024 ) + if ( ++max > 10240 ) max = 0; - if ( ++iterations >= 0x1000 ) + /* with our clock tick, this is about 30 seconds */ + if ( ++iterations >= 4 * 1000 * 30) break; + } puts( "*** END OF TEST 39 ***" ); |