diff options
Diffstat (limited to 'testsuites/itrontests/itrontask03/preempt.c')
-rw-r--r-- | testsuites/itrontests/itrontask03/preempt.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/testsuites/itrontests/itrontask03/preempt.c b/testsuites/itrontests/itrontask03/preempt.c deleted file mode 100644 index 0ff6101c23..0000000000 --- a/testsuites/itrontests/itrontask03/preempt.c +++ /dev/null @@ -1,52 +0,0 @@ -/* Preempt_task - * - * This routine serves as a test task. It verifies the task manager. - * - * Input parameters: - * argument - task argument - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2009. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#include "system.h" - -int Preempt_task_Count; - -void Preempt_task() -{ - ER status; - T_RTSK pk_rtsk; - - puts( "PREEMPT - ref_tsk validation" ); - status = ref_tsk( &pk_rtsk, PREEMPT_TASK_ID ); - fatal_directive_status( status, E_OK , "ref_tsk of PREEMPT"); - rtems_test_assert( pk_rtsk.tskpri == PREEMPT_PRIORITY ); - rtems_test_assert( pk_rtsk.itskpri == PREEMPT_PRIORITY ); - rtems_test_assert( pk_rtsk.task == Preempt_task ); - rtems_test_assert( pk_rtsk.stksz >= RTEMS_MINIMUM_STACK_SIZE ); - rtems_test_assert( pk_rtsk.tskstat == (TTS_RUN | TTS_RDY) ); - - if ( Preempt_task_Count == 0 ) { - Preempt_task_Count ++; - puts( "PREEMPT - chg_pri increment priority "); - status = chg_pri( PREEMPT_TASK_ID, (PREEMPT_PRIORITY+1) ); - directive_failed( status, "chg_pri" ); - puts( "PREEMPT - ext_tsk - going to DORMANT state" ); - ext_tsk( ); - rtems_test_assert( 0 ); - } else { - Preempt_task_Count ++; - puts( "PREEMPT - exd_tsk - Exit and Delete task" ); - exd_tsk( ); - rtems_test_assert( 0 ); - } -} |