4.104.114.95
Last change
on this file since 5a8e7503 was
5a8e7503,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/01/08 at 00:45:04
|
2008-01-31 Joel Sherrill <joel.sherrill@…>
- cpuuse/init.c, malloctest/init.c, monitor/init.c, monitor02/init.c,
putenvtest/init.c, rtems++/Init.cc, rtmonuse/init.c, stackchk/init.c:
Change TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all
POSIX tests. Add a clock_settime case for < 1988.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * This is a simple test whose only purpose is to start the Monitor |
---|
3 | * task. The Monitor task can be used to obtain information about |
---|
4 | * a variety of RTEMS objects. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1999. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * |
---|
9 | * The license and distribution terms for this file may be |
---|
10 | * found in the file LICENSE in this distribution or at |
---|
11 | * http://www.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
14 | */ |
---|
15 | |
---|
16 | #define CONFIGURE_INIT |
---|
17 | #include "system.h" |
---|
18 | |
---|
19 | #include <rtems/shell.h> |
---|
20 | #include <rtems/shellconfig.h> |
---|
21 | #define MAX_ARGS 128 |
---|
22 | |
---|
23 | char *Commands[] = { |
---|
24 | "task", |
---|
25 | "task 32", |
---|
26 | NULL |
---|
27 | }; |
---|
28 | rtems_task Init( |
---|
29 | rtems_task_argument argument |
---|
30 | ) |
---|
31 | { |
---|
32 | uint32_t index; |
---|
33 | rtems_status_code status; |
---|
34 | int i; |
---|
35 | int argc; |
---|
36 | char *argv[MAX_ARGS]; |
---|
37 | char tmp[256]; |
---|
38 | |
---|
39 | puts( "\n*** START OF MONITOR02 ***\n"); |
---|
40 | |
---|
41 | for (i=0; i < MAX_ARGS && Commands[i] ; i++) { |
---|
42 | strcpy( tmp, Commands[i] ); |
---|
43 | if (!rtems_shell_make_args(tmp, &argc, argv, MAX_ARGS) ) { |
---|
44 | printf( "===> %s\n", Commands[i] ); |
---|
45 | rtems_shell_main_monitor(argc, argv); |
---|
46 | } |
---|
47 | } |
---|
48 | |
---|
49 | puts( "\n*** END OF MONITOR02 ***\n"); |
---|
50 | rtems_test_exit(0); |
---|
51 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.