source: rtems/testsuites/libtests/malloc03/init.c @ c934365f

5
Last change on this file since c934365f was c4b8b147, checked in by Sebastian Huber <sebastian.huber@…>, on 11/03/17 at 07:35:38

tests: Use simple console driver

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.1 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#include <tmacros.h>
15#include "test_support.h"
16
17const char rtems_test_name[] = "MALLOC 3";
18
19/* forward declarations to avoid warnings */
20rtems_task Init(rtems_task_argument argument);
21
22rtems_task Init(
23  rtems_task_argument argument
24)
25{
26  void *p1;
27
28  TEST_BEGIN();
29
30  p1 = __builtin_frame_address(0);
31  printf("Attempt to free stack memory\n");
32  free( p1 );
33
34  TEST_END();
35
36  rtems_test_exit(0);
37}
38
39/* configuration information */
40
41#define CONFIGURE_APPLICATION_NEEDS_SIMPLE_CONSOLE_DRIVER
42#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
43
44#define CONFIGURE_MAXIMUM_TASKS             1
45#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
46
47#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
48
49#define CONFIGURE_INIT
50
51#include <rtems/confdefs.h>
52/* end of file */
Note: See TracBrowser for help on using the repository browser.