1 | /* |
---|
2 | * COPYRIGHT (c) 2012. |
---|
3 | * Krzysztof Miesowicz krzysztof.miesowicz@gmail.com |
---|
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 | #include <tmacros.h> |
---|
11 | #include "test_support.h" |
---|
12 | |
---|
13 | /* forward declarations to avoid warnings */ |
---|
14 | rtems_task Init(rtems_task_argument argument); |
---|
15 | |
---|
16 | rtems_task Init( |
---|
17 | rtems_task_argument argument |
---|
18 | ) |
---|
19 | { |
---|
20 | puts( "\n\n*** TEST sp77 ***" ); |
---|
21 | |
---|
22 | rtems_status_code status; |
---|
23 | rtems_id id; |
---|
24 | |
---|
25 | status = rtems_message_queue_create( |
---|
26 | rtems_build_name( 'M', 'Q' , 'T', '1'), |
---|
27 | 2, |
---|
28 | SIZE_MAX-2, |
---|
29 | RTEMS_DEFAULT_ATTRIBUTES, |
---|
30 | &id |
---|
31 | ); |
---|
32 | |
---|
33 | fatal_directive_check_status_only(status , RTEMS_UNSATISFIED , |
---|
34 | "attempt to create message queue return: "); |
---|
35 | puts( "*** END OF TEST sp77 ***" ); |
---|
36 | |
---|
37 | rtems_test_exit(0); |
---|
38 | } |
---|
39 | |
---|
40 | /* configuration information */ |
---|
41 | |
---|
42 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
43 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
44 | |
---|
45 | #define CONFIGURE_MAXIMUM_TASKS 1 |
---|
46 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
47 | |
---|
48 | #define CONFIGURE_INIT |
---|
49 | |
---|
50 | #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1 |
---|
51 | #define CONFIGURE_MESSAGE_BUFFER_MEMORY (CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \ |
---|
52 | 2,SIZE_MAX)) |
---|
53 | |
---|
54 | #include <rtems/confdefs.h> |
---|
55 | /* end of file */ |
---|