summaryrefslogblamecommitdiffstats
path: root/testsuites/samples/paranoia/init.c
blob: 60aaefc2bbe3dc1c45a39aa3b00f64f8ae310463 (plain) (tree)
1
2
3
4
5
6
7
8
9

                            
                                                    
  

                                                           
                                         

   



                    

                 
                      
                   
                  
                              


                                  
                                          
                                 
 





                                  








                                                                 
                                                  
                     
                    
                   

            
/*
 *  COPYRIGHT (c) 1989-2012.
 *  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.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#define TEST_INIT

#define CONFIGURE_INIT
#include "system.h"
#include <stdio.h>
#include <stdlib.h> /* exit */

extern int paranoia(int, char **);

const char rtems_test_name[] = "PARANOIA";
rtems_printer rtems_test_printer;

char *args[2] = { "paranoia", 0 };

rtems_task Init(
  rtems_task_argument ignored
)
{
  /*
   *  Install whatever optional floating point assistance package
   *  is required by this CPU.
   */

#if (defined (m68040))
  M68KFPSPInstallExceptionHandlers ();
#endif

  rtems_print_printer_printf(&rtems_test_printer);
  rtems_test_begin();
  paranoia(1, args);
  rtems_test_end();
  exit( 0 );
}