summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 09:11:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:57:25 +0200
commit918d5565b202270d930b6f819672404fa8fa32de (patch)
tree7deaf801255612f9193f5e8eb3812bb4e9a934c7
parentposix: Obtain _Thread_Executing in proper context (diff)
downloadrtems-918d5565b202270d930b6f819672404fa8fa32de.tar.bz2
sptests/sp37: Disable dispatch for clock tick
-rw-r--r--testsuites/sptests/sp37/init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 956c91d936..862493cd44 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -192,7 +192,7 @@ rtems_timer_service_routine test_unblock_task(
_Thread_Disable_dispatch();
status = rtems_task_resume( blocked_task_id );
_Thread_Unnest_dispatch();
- directive_failed( status, "rtems_task_resume" );
+ directive_failed_with_level( status, "rtems_task_resume", 1 );
}
rtems_task Init(
@@ -223,7 +223,9 @@ rtems_task Init(
/*
* Test clock tick from outside ISR
*/
+ _Thread_Disable_dispatch();
status = rtems_clock_tick();
+ _Thread_Enable_dispatch();
directive_failed( status, "rtems_clock_tick" );
puts( "clock_tick from task level" );
@@ -260,7 +262,9 @@ rtems_task Init(
/* we expect to be preempted from this call */
for ( i=0 ; i<100 && blocked_task_status != 3 ; i++ ) {
+ _Thread_Disable_dispatch();
status = rtems_clock_tick();
+ _Thread_Enable_dispatch();
directive_failed( status, "rtems_clock_tick" );
}
switch ( blocked_task_status ) {