source: rtems/testsuites/sptests/spfatal01/init.c @ 1a48cbf

5
Last change on this file since 1a48cbf was 1a48cbf, checked in by Sebastian Huber <sebastian.huber@…>, on 11/11/19 at 19:08:46

sptests: Avoid include path magic

Update #3818.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include "../spfatal_support/spfatal.h"
6
7/*
8 * Classic API Init task create failure
9 */
10
11/*
12 *  Way too much stack space.  Should generate a fatal error
13 *  on the init task create.
14 */
15#define CONFIGURE_HAS_OWN_INIT_TASK_TABLE
16#define CONFIGURE_INIT_TASK_STACK_SIZE 0
17rtems_initialization_tasks_table Initialization_tasks[] = {
18  { rtems_build_name('I', 'N', 'I', ' '),
19    32UL * 1024UL,
20    1,
21    RTEMS_DEFAULT_ATTRIBUTES,
22    Init,
23    RTEMS_DEFAULT_MODES,
24    0
25  }
26};
27#define CONFIGURE_INIT_TASK_TABLE Initialization_tasks
28#define CONFIGURE_INIT_TASK_TABLE_SIZE \
29  sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table)
30
31#define FATAL_ERROR_TEST_NAME            "1"
32#define FATAL_ERROR_DESCRIPTION          "Classic API Init task create failure"
33#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
34#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED
35
36static void force_error(void)
37{
38/*
39 *  Case 2: Null entry
40 *  Case 3: semaphore_create
41 *          _Thread_Dispatch_disable
42 *          semaphore_obtain
43 */
44
45  /* we will not run this far */
46}
47
48#include "../spfatal_support/spfatalimpl.h"
Note: See TracBrowser for help on using the repository browser.