summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests/sp04/tswitch.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-03-20 14:56:45 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-03-20 14:56:45 +0000
commitfabacfedb8d6d281000f616e8902bde8187b2c69 (patch)
tree5bb1ae9d17dc02a555c1cfc45bc50845f58becf0 /c/src/tests/sptests/sp04/tswitch.c
parent2002-03-20 Chris Johns <ccj@acm.org> (diff)
downloadrtems-fabacfedb8d6d281000f616e8902bde8187b2c69.tar.bz2
2002-03-20 Chris Johns <ccj@acm.org>
* PR145. * sp04/task1.c, sp04/tswitch.c: Test fails if other tasks present in system (e.g. driver tasks). Also exit on minimum number of switches not precise number.
Diffstat (limited to '')
-rw-r--r--c/src/tests/sptests/sp04/tswitch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/tests/sptests/sp04/tswitch.c b/c/src/tests/sptests/sp04/tswitch.c
index a573adbb1e..689dd623d3 100644
--- a/c/src/tests/sptests/sp04/tswitch.c
+++ b/c/src/tests/sptests/sp04/tswitch.c
@@ -35,7 +35,7 @@ rtems_extension Task_switch(
rtems_time_of_day time;
rtems_status_code status;
- index = task_number( heir->Object.id );
+ index = task_number( heir->Object.id ) - task_number( Task_id[1] ) + 1;
switch( index ) {
case 1: