5
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 TESTS_USE_PRINTK |
---|
15 | #include "tmacros.h" |
---|
16 | #include "test_support.h" |
---|
17 | |
---|
18 | const char rtems_test_name[] = "SPERROR 3"; |
---|
19 | |
---|
20 | /* forward declarations to avoid warnings */ |
---|
21 | rtems_task Init(rtems_task_argument argument); |
---|
22 | |
---|
23 | static void fatal_extension( |
---|
24 | rtems_fatal_source source, |
---|
25 | bool always_set_to_false, |
---|
26 | rtems_fatal_code error |
---|
27 | ) |
---|
28 | { |
---|
29 | if ( |
---|
30 | source == RTEMS_FATAL_SOURCE_EXIT |
---|
31 | && !always_set_to_false |
---|
32 | && error == 0 |
---|
33 | ) { |
---|
34 | TEST_END(); |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | rtems_task Init( |
---|
39 | rtems_task_argument argument |
---|
40 | ) |
---|
41 | { |
---|
42 | TEST_BEGIN(); |
---|
43 | |
---|
44 | rtems_panic( |
---|
45 | "Dummy panic\n" |
---|
46 | ); |
---|
47 | |
---|
48 | rtems_test_assert(0); |
---|
49 | } |
---|
50 | |
---|
51 | /* configuration information */ |
---|
52 | |
---|
53 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
54 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
55 | |
---|
56 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
57 | #define CONFIGURE_INITIAL_EXTENSIONS \ |
---|
58 | { .fatal = fatal_extension }, RTEMS_TEST_INITIAL_EXTENSION |
---|
59 | |
---|
60 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
61 | |
---|
62 | #define CONFIGURE_INIT |
---|
63 | |
---|
64 | #include <rtems/confdefs.h> |
---|
65 | /* end of file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.