source: rtems/testsuites/psxtests/psxfatal_support/system.h @ 698c2e50

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

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

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