4.115
Last change
on this file since f68401e was
9391f6d,
checked in by Sebastian Huber <sebastian.huber@…>, on 03/10/14 at 15:31:43
|
tests/samples: Use <rtems/test.h>
|
-
Property mode set to
100644
|
File size:
925 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.com/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 <stdlib.h> /* exit */ |
---|
18 | |
---|
19 | extern int paranoia(int, char **); |
---|
20 | |
---|
21 | const char rtems_test_name[] = "PARANOIA"; |
---|
22 | |
---|
23 | char *args[2] = { "paranoia", 0 }; |
---|
24 | |
---|
25 | rtems_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 BSP_SMALL_MEMORY |
---|
35 | printf("NO Paranoia Test. MEMORY TOO SMALL"); |
---|
36 | #else |
---|
37 | |
---|
38 | #if (defined (m68040)) |
---|
39 | M68KFPSPInstallExceptionHandlers (); |
---|
40 | #endif |
---|
41 | |
---|
42 | rtems_test_begin(); |
---|
43 | paranoia(1, args); |
---|
44 | rtems_test_end(); |
---|
45 | #endif /* BSP_SMALL_MEMORY */ |
---|
46 | exit( 0 ); |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.