source: rtems/testsuites/sptests/sperror03/init.c @ acc9d064

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

tests: Remove obsolete TESTS_USE_PRINTK

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  COPYRIGHT (c) 1989-2012.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#define TEST_INIT
15
16#include "tmacros.h"
17#include "test_support.h"
18
19const char rtems_test_name[] = "SPERROR 3";
20
21/* forward declarations to avoid warnings */
22rtems_task Init(rtems_task_argument argument);
23
24static void fatal_extension(
25  rtems_fatal_source source,
26  bool always_set_to_false,
27  rtems_fatal_code error
28)
29{
30  if (
31    source == RTEMS_FATAL_SOURCE_EXIT
32      && !always_set_to_false
33      && error == 0
34  ) {
35    TEST_END();
36  }
37}
38
39rtems_task Init(
40  rtems_task_argument argument
41)
42{
43  TEST_BEGIN();
44
45  rtems_panic(
46    "Dummy panic\n"
47  );
48
49  rtems_test_assert(0);
50}
51
52/* configuration information */
53
54#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
55#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
56
57#define CONFIGURE_MAXIMUM_TASKS             1
58#define CONFIGURE_INITIAL_EXTENSIONS \
59  { .fatal = fatal_extension }, RTEMS_TEST_INITIAL_EXTENSION
60
61#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
62
63#define CONFIGURE_INIT_TASK_ATTRIBUTES RTEMS_FLOATING_POINT
64
65#define CONFIGURE_INIT
66
67#include <rtems/confdefs.h>
68/* end of file */
Note: See TracBrowser for help on using the repository browser.