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

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

tests: Remove TEST_INIT

The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.

Update #3170.
Update #3199.

  • Property mode set to 100644
File size: 1.0 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_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.