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

Last change on this file was 7b00c2fa, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 6, 2017 at 6:56:17 AM

tests: Use <tmacros.h> in all tests

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 865 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 CONFIGURE_INIT
15#include "system.h"
16#include <stdio.h>
17#include <tmacros.h>
18
19extern int paranoia(int, char **);
20
21const char rtems_test_name[] = "PARANOIA";
22
23char *args[2] = { "paranoia", 0 };
24
25rtems_task Init(
26  rtems_task_argument ignored
27)
28{
29  /*
30   *  Install whatever optional floating point assistance package
31   *  is required by this CPU.
32   */
33
34#if (defined (m68040))
35  M68KFPSPInstallExceptionHandlers ();
36#endif
37
38  rtems_print_printer_fprintf_putc(&rtems_test_printer);
39  TEST_BEGIN();
40  paranoia(1, args);
41  TEST_END();
42  rtems_test_exit( 0 );
43}
Note: See TracBrowser for help on using the repository browser.