diff options
Diffstat (limited to 'testsuites/sptests/sp37')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 6 |
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 ) { |