source: rtems/testsuites/sptests/spfatal05/init.c @ 6b0873f

5
Last change on this file since 6b0873f was 6b0873f, checked in by Sebastian Huber <sebastian.huber@…>, on 02/14/20 at 07:40:41

config: Remove CONFIGURE_HAS_OWN_INIT_TASK_TABLE

The CONFIGURE_HAS_OWN_INIT_TASK_TABLE and
CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE are the last *_HAS_OWN_*
configuration options. These two options are probably unused, see also:

Removing them simplifies the configuration. If there is a real user need
which shows up after the removal, we can resurrect them on demand.

Using CONFIGURE_HAS_OWN_INIT_TASK_TABLE would have required the use of
the undocumented CONFIGURE_INIT_TASK_TABLE and
CONFIGURE_INIT_TASK_TABLE_SIZE configuration options.

Update #3873.

  • Property mode set to 100644
File size: 1.3 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 *  COPYRIGHT (c) 1989-2009.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#define SPFATAL_TEST_CASE_EXTRA_TASKS 1
19
20#define FATAL_ERROR_TEST_NAME            "5"
21#define FATAL_ERROR_DESCRIPTION          "Core fall out of a task"
22#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
23#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_THREAD_EXITTED
24
25rtems_task EmptyTask( rtems_task_argument unused );
26
27rtems_task EmptyTask(
28  rtems_task_argument unused
29)
30{
31}
32
33static void force_error(void)
34{
35  rtems_id          id;
36  rtems_status_code status;
37
38  status = rtems_task_create(
39    rtems_build_name('T','A','0','1' ),
40    4,
41    RTEMS_MINIMUM_STACK_SIZE,
42    RTEMS_DEFAULT_MODES,
43    RTEMS_DEFAULT_ATTRIBUTES,
44    &id
45  );
46  directive_failed( status, "rtems_task_create" );
47
48  status = rtems_task_start( id, EmptyTask, 0 );
49  directive_failed( status, "rtems_task_start" );
50
51  status = rtems_task_wake_after( 100 );
52  directive_failed( status, "rtems_task_wake_after" );
53
54  /* we will not run this far */
55}
56
57#include "../spfatal_support/spfatalimpl.h"
Note: See TracBrowser for help on using the repository browser.