5
Last change
on this file since 7bec7f27 was
f703e7f,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/26/17 at 11:59:05
|
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 | |
---|
21 | extern int paranoia(int, char **); |
---|
22 | |
---|
23 | const char rtems_test_name[] = "PARANOIA"; |
---|
24 | |
---|
25 | char *args[2] = { "paranoia", 0 }; |
---|
26 | |
---|
27 | rtems_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.