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

4.104.11
Last change on this file since cf7267cf was cf7267cf, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2009 at 1:43:17 PM

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

  • Makefile.am, configure.ac, spfatal11/init.c: Add test of cannot initialize workspace heap during initialize. Can be caused by unaligned address or not enough memory to initialize heap required overhead.
  • spfatal12/.cvsignore, spfatal12/Makefile.am, spfatal12/init.c, spfatal12/spfatal12.doc, spfatal12/spfatal12.scn: New files.
  • Property mode set to 100644
File size: 959 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_start = (void *)0x03;
23  Configuration.work_space_size  = sizeof(void *);
24  rtems_initialize_data_structures();
25}
26
27/* configuration information */
28
29#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
30#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
31
32#define CONFIGURE_MAXIMUM_TASKS              1
33#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
34
35#define CONFIGURE_INIT
36#include <rtems/confdefs.h>
37
38/* global variables */
Note: See TracBrowser for help on using the repository browser.