summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-22 18:30:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-01-22 18:30:14 +0000
commit8b7a7139df5dad320c69ece43481252be902415d (patch)
tree318b489ce638329360127a810c560991fde461c3 /testsuites
parent2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8b7a7139df5dad320c69ece43481252be902415d.tar.bz2
2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp39/init.c: Clean up.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog4
-rw-r--r--testsuites/sptests/sp39/init.c13
2 files changed, 13 insertions, 4 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index dca9d6d3b5..e73e8b7e49 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,5 +1,9 @@
2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
+ * sp39/init.c: Clean up.
+
+2008-01-22 Joel Sherrill <joel.sherrill@oarcorp.com>
+
* sp39/init.c: Modify to improve coverage.
2008-01-18 Jennifer Averett <jennifer.averett@OARcorp.com>
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 ***" );