summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp04/task1.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-12 20:55:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-06-12 20:55:21 +0000
commit9b413eaef683ad383f9fbae5ea6b1f55b8acbe35 (patch)
treee4c4277b52edf92025de2ba05f60a720868e59e9 /testsuites/sptests/sp04/task1.c
parentFixed comment block at the beginning of the file for a copyright date (diff)
downloadrtems-9b413eaef683ad383f9fbae5ea6b1f55b8acbe35.tar.bz2
Patch from Eric Norum to avoid printing from context switch user extension.
The array is too long and needs to be shortened.
Diffstat (limited to 'testsuites/sptests/sp04/task1.c')
-rw-r--r--testsuites/sptests/sp04/task1.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/testsuites/sptests/sp04/task1.c b/testsuites/sptests/sp04/task1.c
index 53f0188ca0..40b7c175f4 100644
--- a/testsuites/sptests/sp04/task1.c
+++ b/testsuites/sptests/sp04/task1.c
@@ -21,6 +21,18 @@
#include "system.h"
+static void
+showTaskSwitches (void)
+{
+ int i;
+ int switches = taskSwitchLogIndex;
+
+ for (i = 0 ; i < switches ; i++) {
+ put_name( Task_name[taskSwitchLog[i].taskIndex], FALSE );
+ print_time( "- ", &taskSwitchLog[i].when, "\n" );
+ }
+}
+
rtems_task Task_1(
rtems_task_argument argument
)
@@ -97,7 +109,10 @@ rtems_task Task_1(
);
directive_failed( status, "rtems_task_mode" );
- while ( FOREVER );
+ while ( !testsFinished );
+ showTaskSwitches ();
+ puts( "*** END OF TEST 4 ***" );
+ exit (0);
}
}
}