source: rtems/testsuites/samples/paranoia/init.c @ f703e7f

Last change on this file since f703e7f was f703e7f, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 26, 2017 at 11:59:05 AM

tests: Move rtems_test_printer definition

Statically initialize it to use printk().

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 889 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#define TEST_INIT
15
16#define CONFIGURE_INIT
17#include "system.h"
18#include <stdio.h>
19#include <stdlib.h> /* exit */
20
21extern int paranoia(int, char **);
22
23const char rtems_test_name[] = "PARANOIA";
24
25char *args[2] = { "paranoia", 0 };
26
27rtems_task Init(
28  rtems_task_argument ignored
29)
30{
31  /*
32   *  Install whatever optional floating point assistance package
33   *  is required by this CPU.
34   */
35
36#if (defined (m68040))
37  M68KFPSPInstallExceptionHandlers ();
38#endif
39
40  rtems_print_printer_printf(&rtems_test_printer);
41  rtems_test_begin();
42  paranoia(1, args);
43  rtems_test_end();
44  exit( 0 );
45}
Note: See TracBrowser for help on using the repository browser.