source: rtems/testsuites/sptests/sp41/init.c @ 3c8eda7

4.115
Last change on this file since 3c8eda7 was 3c8eda7, checked in by Joel Sherrill <joel.sherrill@…>, on 05/12/12 at 16:01:26

sptests - Eliminate missing prototype warnings

  • Property mode set to 100644
File size: 1.3 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.com/license/LICENSE.
8 */
9
10#ifdef HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
15#include <tmacros.h>
16
17/* forward declarations to avoid warnings */
18rtems_task Init(rtems_task_argument argument);
19void iterator(Thread_Control *thread);
20
21void iterator(
22  Thread_Control *thread
23)
24{
25}
26
27rtems_task Init(
28  rtems_task_argument ignored
29)
30{
31  void *tmp;
32
33  puts( "\n\n*** TEST 41 ***" );
34
35  puts( "Init - overwrite internal value to trip case" );
36  tmp = _Objects_Information_table[ OBJECTS_CLASSIC_API ][ 1 ];
37  _Objects_Information_table[ OBJECTS_CLASSIC_API ][ 1 ] = NULL;
38
39  puts( "Init - rtems_iterate_over_all_threads" );
40  rtems_iterate_over_all_threads(iterator);
41  _Objects_Information_table[ OBJECTS_CLASSIC_API ][ 1 ] = tmp;
42
43  puts( "*** END OF TEST 41 ***" );
44  rtems_test_exit(0);
45}
46
47/* configuration information */
48
49#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
50#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
51
52#define CONFIGURE_MAXIMUM_TASKS         1
53#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
54
55#define CONFIGURE_INIT
56#include <rtems/confdefs.h>
57
58/* global variables */
Note: See TracBrowser for help on using the repository browser.