Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:46

0001 /*
0002  *  COPYRIGHT (c) 2012.
0003  *  Krzysztof Miesowicz <krzysztof.miesowicz@gmail.com>
0004  *  
0005  *  The license and distribution terms for this file may be
0006  *  found in the file LICENSE in this distribution or at
0007  *  http://www.rtems.org/license/LICENSE.
0008  */
0009 
0010 #include <tmacros.h>
0011 #include "test_support.h"
0012 
0013 const char rtems_test_name[] = "SP 77";
0014 
0015 /* forward declarations to avoid warnings */
0016 rtems_task Init(rtems_task_argument argument);
0017 
0018 rtems_task Init(
0019   rtems_task_argument argument
0020 )
0021 {
0022   TEST_BEGIN();
0023 
0024   rtems_status_code status;
0025   rtems_id id;
0026 
0027   status = rtems_message_queue_create(
0028     rtems_build_name( 'M', 'Q' , 'T', '1'),
0029     2,
0030     SIZE_MAX-2,
0031     RTEMS_DEFAULT_ATTRIBUTES,
0032       &id
0033   );
0034   
0035   fatal_directive_check_status_only(status , RTEMS_INVALID_SIZE ,
0036                     "attempt to create message queue return: ");  
0037   TEST_END();
0038 
0039   rtems_test_exit(0);
0040 }
0041 
0042 /* configuration information */
0043 
0044 #define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
0045 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
0046 
0047 #define CONFIGURE_MAXIMUM_TASKS             1
0048 #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
0049 
0050 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
0051 
0052 #define CONFIGURE_INIT
0053 
0054 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 1
0055 #define CONFIGURE_MESSAGE_BUFFER_MEMORY (CONFIGURE_MESSAGE_BUFFERS_FOR_QUEUE( \
0056                         2,SIZE_MAX))
0057 
0058 #include <rtems/confdefs.h>
0059 /* end of file */