source: rtems/testsuites/sptests/spfatal12/init.c @ d5ae827

4.104.115
Last change on this file since d5ae827 was 9847e4b4, checked in by Joel Sherrill <joel.sherrill@…>, on 07/06/09 at 21:05:03

2009-07-06 Joel Sherrill <joel.sherrill@…>

  • spfatal12/init.c: Address to heap initialize must be aligned but size must be too small.
  • Property mode set to 100644
File size: 910 bytes
Line 
1/*  Test fatal error when _Heap_Initialize fails during initialization
2 *
3 *  COPYRIGHT (c) 1989-2009.
4 *  On-Line Applications Research Corporation (OAR).
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.com/license/LICENSE.
9 *
10 *  $Id$
11 */
12
13#include <tmacros.h>
14
15rtems_task Init(
16  rtems_task_argument ignored
17)
18{
19  puts( "\n\n*** TEST FATAL 12 ***" );
20
21  puts( "_Heap_Initialize fails during RTEMS initialization" );
22  Configuration.work_space_size  = sizeof(void *);
23  rtems_initialize_data_structures();
24}
25
26/* configuration information */
27
28#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
29#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
30
31#define CONFIGURE_MAXIMUM_TASKS              1
32#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
33
34#define CONFIGURE_INIT
35#include <rtems/confdefs.h>
36
37/* global variables */
Note: See TracBrowser for help on using the repository browser.