summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp07/task4.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-16 15:43:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-09-16 15:43:15 +0200
commit7f8a978e6b078492bbc657a3731d324011274f2b (patch)
treec7710934a073c908f1d4fe3dee7ee4d898246129 /testsuites/sptests/sp07/task4.c
parentsmptests/smpcache01: Remove invalidation of data cache lines from test (diff)
downloadrtems-7f8a978e6b078492bbc657a3731d324011274f2b.tar.bz2
sptests/sp07: Minimize thread dispatch latency
Do not use sprintf() in thread dispatch critical sections to avoid corruption of profiling samples. Update test to reflect thread the life cycle changes.
Diffstat (limited to 'testsuites/sptests/sp07/task4.c')
-rw-r--r--testsuites/sptests/sp07/task4.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/testsuites/sptests/sp07/task4.c b/testsuites/sptests/sp07/task4.c
index 10832925e2..365b595d81 100644
--- a/testsuites/sptests/sp07/task4.c
+++ b/testsuites/sptests/sp07/task4.c
@@ -27,7 +27,26 @@ rtems_task Task_4(
rtems_task_argument argument
)
{
- buffered_io_flush();
+ rtems_status_code status;
+ rtems_id id;
+
+ assert_extension_counts( &Task_created[ 0 ], 0x2 | 0x4 | 0x8 | 0x10 );
+ assert_extension_counts( &Task_started[ 0 ], 0x2 | 0x4 | 0x8 | 0x10 );
+ assert_extension_counts( &Task_restarted[ 0 ], 0x4 );
+ assert_extension_counts( &Task_deleted[ 0 ], 0x0 );
+
+ /* Kill the zombies */
+ status = rtems_task_create(
+ rtems_build_name( 'L', 'A', 'Z', 'Y' ),
+ 1,
+ RTEMS_MINIMUM_STACK_SIZE,
+ RTEMS_DEFAULT_MODES,
+ RTEMS_DEFAULT_ATTRIBUTES,
+ &id
+ );
+ rtems_test_assert( status == RTEMS_SUCCESSFUL );
+
+ assert_extension_counts( &Task_deleted[ 0 ], 0x2 | 0x4 | 0x8 );
puts( "TA4 - exitting task" );
}