source: rtems/testsuites/sptests/spfatal_support/system.h @ 6c0301d

4.115
Last change on this file since 6c0301d was 6c0301d, checked in by Sebastian Huber <sebastian.huber@…>, on 03/25/14 at 07:06:21

tests/sptests: Use <rtems/test.h>

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/*  system.h
2 *
3 *  This include file contains information that is included in every
4 *  function in the test set.
5 *
6 *  COPYRIGHT (c) 1989-2009.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.rtems.org/license/LICENSE.
12 */
13
14/*
15 *  Some of the fatal error cases require the ability to peek inside RTEMS
16 */
17#include <rtems.h>
18#include <rtems/test.h>
19#include <tmacros.h>
20
21/* functions */
22
23rtems_task Init(
24  rtems_task_argument argument
25);
26
27void Fatal_extension(
28  rtems_fatal_source source,
29  bool               is_internal,
30  rtems_fatal_code   error
31);
32
33void Put_Error(
34  uint32_t source,
35  uint32_t error
36);
37
38void Put_Source( rtems_fatal_source source );
39
40void force_error(void);
41
42/* need some prototypes for test cases */
43
44rtems_device_driver consume_semaphores_initialize(
45  rtems_device_major_number major __attribute__((unused)),
46  rtems_device_minor_number minor __attribute__((unused)),
47  void *pargp __attribute__((unused))
48);
49
50#define CONSUME_SEMAPHORE_DRIVERS \
51  { consume_semaphores_initialize, NULL, NULL, NULL, NULL, NULL }
52
53#include "testcase.h"
54
55/* configuration information */
56
57extern rtems_extensions_table initial_extensions;
58
59#define CONFIGURE_INITIAL_EXTENSIONS \
60  { \
61    NULL,                    /* create  */ \
62    NULL,                    /* start   */ \
63    NULL,                    /* restart */ \
64    NULL,                    /* delete  */ \
65    NULL,                    /* switch  */ \
66    NULL,                    /* begin   */ \
67    NULL,                    /* exitted */ \
68    Fatal_extension          /* fatal   */ \
69  }, \
70  RTEMS_TEST_INITIAL_EXTENSION
71
72/* extra parameters may be in testcase.h */
73#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
74#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
75
76/* always need an Init task, some cases need more tasks */
77#ifndef SPFATAL_TEST_CASE_EXTRA_TASKS
78#define SPFATAL_TEST_CASE_EXTRA_TASKS 0
79#endif
80#define CONFIGURE_MAXIMUM_TASKS \
81  (SPFATAL_TEST_CASE_EXTRA_TASKS + 1)
82
83#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
84
85#include <rtems/confdefs.h>
86
87/* global variables */
88
89/* end of include file */
Note: See TracBrowser for help on using the repository browser.