source: rtems/testsuites/samples/paranoia/init.c @ 98c6d50

Last change on this file since 98c6d50 was 98c6d50, checked in by Chris Johns <chrisj@…>, on Oct 19, 2017 at 5:39:16 AM

testsuite: Use printk for all test output where possible.

  • Remove the printf support leaving the direct printk support configured with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf call to printk.
  • Control the test's single init for functions and global data with TEST_INIT and not CONFIGURE_INIT. They are now separate.

Updates #3170.

  • Property mode set to 100644
File size: 923 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";
24rtems_printer rtems_test_printer;
25
26char *args[2] = { "paranoia", 0 };
27
28rtems_task Init(
29  rtems_task_argument ignored
30)
31{
32  /*
33   *  Install whatever optional floating point assistance package
34   *  is required by this CPU.
35   */
36
37#if (defined (m68040))
38  M68KFPSPInstallExceptionHandlers ();
39#endif
40
41  rtems_print_printer_printf(&rtems_test_printer);
42  rtems_test_begin();
43  paranoia(1, args);
44  rtems_test_end();
45  exit( 0 );
46}
Note: See TracBrowser for help on using the repository browser.