source: rtems/testsuites/psxtests/psxmsgq01/system.h @ 8dc1ed1

5
Last change on this file since 8dc1ed1 was 8dc1ed1, checked in by Sebastian Huber <sebastian.huber@…>, on 10/25/18 at 12:08:26

posix: Enable more psxtests by default

Update #2514.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/**
2 *  @file
3 *
4 *  This include file contains information that is included in every
5 *  function in the test set.
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2012.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17/* functions */
18
19#include <pmacros.h>
20#include <unistd.h>
21#include <errno.h>
22#include <sched.h>
23#include <tmacros.h>
24
25void *POSIX_Init(void *argument);
26void *Task_1_through_3(void *argument);
27void *Task_4(void *argument);
28void *Task_5(void *argument);
29
30/* configuration information */
31
32#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
33#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
34
35#define CONFIGURE_POSIX_INIT_THREAD_TABLE
36
37#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
38
39#define CONFIGURE_MAXIMUM_POSIX_THREADS         5
40#define CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUES 10
41#if defined(RTEMS_POSIX_API)
42#define CONFIGURE_MAXIMUM_POSIX_TIMERS          4
43#define CONFIGURE_MAXIMUM_TIMERS                4
44#endif
45
46#define CONFIGURE_POSIX_INIT_THREAD_TABLE
47#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE \
48        (RTEMS_MINIMUM_STACK_SIZE * 10)
49
50#include <rtems/confdefs.h>
51
52/* global variables */
53
54TEST_EXTERN pthread_t        Init_id;
55TEST_EXTERN pthread_t        Task_id;
56
57#define MSGSIZE   9
58#define MAXMSG    4
59
60typedef enum {
61  RD_QUEUE,   /* Read only queue               */
62  WR_QUEUE,   /* Write only queue              */
63  RW_QUEUE,   /* Read Write non-blocking queue */
64  BLOCKING,   /* Read Write blocking queue     */
65  DEFAULT_RW, /* default must be last          */
66  CLOSED,     /* Created and closed queue      */
67  NUMBER_OF_TEST_QUEUES
68} Test_Queue_Types;
69extern int Priority_Order[MAXMSG+1];
70void *Task_1 ( void *argument );
71void *Task_2( void *argument );
72void *Task_3( void *argument );
73void *Task_4( void *argument );
74
75/* end of include file */
Note: See TracBrowser for help on using the repository browser.