source: rtems/testsuites/smptests/smpfatal06/init.c @ af43554

5
Last change on this file since af43554 was af43554, checked in by Sebastian Huber <sebastian.huber@…>, on 10/26/17 at 11:59:11

tests: Remove TEST_INIT

The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 * Copyright (c) 2016 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Dornierstr. 4
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
9 *
10 * The license and distribution terms for this file may be
11 * found in the file LICENSE in this distribution or at
12 * http://www.rtems.org/license/LICENSE.
13 */
14
15#ifdef HAVE_CONFIG_H
16  #include "config.h"
17#endif
18
19#include "tmacros.h"
20
21#include <rtems.h>
22
23const char rtems_test_name[] = "SMPFATAL 6";
24
25static void Init(rtems_task_argument arg)
26{
27  rtems_interrupt_level level;
28
29  TEST_BEGIN();
30
31  rtems_interrupt_local_disable(level);
32  (void) level;
33  rtems_task_wake_after(1);
34}
35
36static void fatal_extension(
37  rtems_fatal_source source,
38  bool always_set_to_false,
39  rtems_fatal_code code
40)
41{
42  if (
43    source == INTERNAL_ERROR_CORE
44      && !always_set_to_false
45      && code == INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT
46  ) {
47    TEST_END();
48  }
49}
50
51#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
52#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
53
54#define CONFIGURE_INITIAL_EXTENSIONS \
55  { .fatal = fatal_extension }, \
56  RTEMS_TEST_INITIAL_EXTENSION
57
58#define CONFIGURE_MAXIMUM_PROCESSORS 2
59
60#define CONFIGURE_MAXIMUM_TASKS 1
61
62#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
63
64#define CONFIGURE_INIT
65
66#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.