source: rtems/testsuites/sptests/spinternalerror02/init.c @ b31a960

4.11
Last change on this file since b31a960 was b31a960, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 13, 2012 at 4:53:43 PM

score: Add INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR

Use INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR on PowerPC for
_CPU_ISR_install_vector().

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
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.com/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
23static void test(void)
24{
25  rtems_fatal_code error = 0;
26  const char *desc_last = NULL;
27  const char *desc;
28
29  do {
30    desc_last = desc;
31    desc = rtems_internal_error_description( error );
32    ++error;
33    puts( desc );
34  } while ( desc != desc_last );
35
36  rtems_test_assert( error - 3 == INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR );
37}
38
39static void Init(rtems_task_argument arg)
40{
41  puts("\n\n*** TEST SPINTERNALERROR 2 ***");
42
43  test();
44
45  puts("*** END OF TEST SPINTERNALERROR 2 ***");
46
47  rtems_test_exit(0);
48}
49
50#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
51#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
52
53#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
54
55#define CONFIGURE_MAXIMUM_TASKS 1
56
57#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
58
59#define CONFIGURE_INIT
60
61#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.