1 | /* |
---|
2 | * COPYRIGHT (c) 1989-2009. |
---|
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 | #include "tmacros.h" |
---|
15 | |
---|
16 | const char rtems_test_name[] = "SPNOTEPAD 1"; |
---|
17 | |
---|
18 | /* forward declarations to avoid warnings */ |
---|
19 | rtems_task Init(rtems_task_argument argument); |
---|
20 | |
---|
21 | rtems_task Init( |
---|
22 | rtems_task_argument ignored |
---|
23 | ) |
---|
24 | { |
---|
25 | rtems_status_code status; |
---|
26 | uint32_t note; |
---|
27 | |
---|
28 | TEST_BEGIN(); |
---|
29 | |
---|
30 | puts( "Init - rtems_task_get_note - RTEMS_NOT_CONFIGURED" ); |
---|
31 | status = rtems_task_get_note( rtems_task_self(), 0, ¬e ); |
---|
32 | fatal_directive_status( |
---|
33 | status, |
---|
34 | RTEMS_NOT_CONFIGURED, |
---|
35 | "rtems_task_get_note not configured" |
---|
36 | ); |
---|
37 | |
---|
38 | puts( "Init - rtems_task_set_note - RTEMS_NOT_CONFIGURED" ); |
---|
39 | status = rtems_task_set_note( rtems_task_self(), 0, 1 ); |
---|
40 | fatal_directive_status( |
---|
41 | status, |
---|
42 | RTEMS_NOT_CONFIGURED, |
---|
43 | "rtems_task_set_note not configured" |
---|
44 | ); |
---|
45 | |
---|
46 | TEST_END(); |
---|
47 | |
---|
48 | rtems_test_exit(0); |
---|
49 | } |
---|
50 | |
---|
51 | /* configuration information */ |
---|
52 | |
---|
53 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
54 | #define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER |
---|
55 | |
---|
56 | #define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS |
---|
57 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
58 | #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION |
---|
59 | |
---|
60 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
61 | |
---|
62 | #define CONFIGURE_INIT |
---|
63 | |
---|
64 | #include <rtems/confdefs.h> |
---|
65 | |
---|
66 | /* global variables */ |
---|