summaryrefslogblamecommitdiffstats
path: root/testsuites/ada/sptests/sp19/sp19.adb
blob: f2cfddb97a66f5ce0df5c607eaeba3aa2f9d09c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                             
                            
                                                    


                                                           
                                         
  

           
                 







                               
                      










                                                                  
                     












                                                                 
--
--  MAIN / BODY
--
--  DESCRIPTION:
--
--  This is the entry point for Test SP19 of the Single Processor Test Suite.
--
--  DEPENDENCIES: 
--
--  
--
--  COPYRIGHT (c) 1989-2011.
--  On-Line Applications Research Corporation (OAR).
--
--  The license and distribution terms for this file may in
--  the file LICENSE in this distribution or at
--  http://www.rtems.org/license/LICENSE.
--

with RTEMS;
with RTEMS.TASKS;
with SPTEST;
with TEST_SUPPORT;

procedure SP19 is
  INIT_ID : RTEMS.ID;
  STATUS  : RTEMS.STATUS_CODES;
begin

   RTEMS.TASKS.CREATE(
      RTEMS.BUILD_NAME(  'I', 'N', 'I', 'T' ),
      1,
      RTEMS.MINIMUM_STACK_SIZE,
      RTEMS.NO_PREEMPT,
      RTEMS.FLOATING_POINT,
      INIT_ID,
      STATUS
   );
   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_CREATE OF INIT" );


   RTEMS.TASKS.START(
      INIT_ID,
      SPTEST.INIT'ACCESS,
      0,
      STATUS
   );
   TEST_SUPPORT.DIRECTIVE_FAILED( STATUS, "TASK_START OF INIT" );

   loop
      delay 120.0;
   end loop;

end SP19;