1 | /* Init |
---|
2 | * |
---|
3 | * This routine is the initialization task for this test program. |
---|
4 | * It is a user initialization task and has the responsibility for creating |
---|
5 | * and starting the tasks that make up the test. If the time of day |
---|
6 | * clock is required for the test, it should also be set to a known |
---|
7 | * value by this function. |
---|
8 | * |
---|
9 | * Input parameters: |
---|
10 | * argument - task argument |
---|
11 | * |
---|
12 | * Output parameters: NONE |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1989-1998. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * Copyright assigned to U.S. Government, 1994. |
---|
17 | * |
---|
18 | * The license and distribution terms for this file may be |
---|
19 | * found in the file LICENSE in this distribution or at |
---|
20 | * http://www.OARcorp.com/rtems/license.html. |
---|
21 | * |
---|
22 | * $Id$ |
---|
23 | */ |
---|
24 | |
---|
25 | #define TEST_INIT |
---|
26 | #include <tmacros.h> |
---|
27 | #include <stdio.h> |
---|
28 | #include <stdlib.h> |
---|
29 | |
---|
30 | rtems_task Init( |
---|
31 | rtems_task_argument argument |
---|
32 | ); |
---|
33 | |
---|
34 | /* configuration information */ |
---|
35 | |
---|
36 | #define CONFIGURE_SPTEST |
---|
37 | |
---|
38 | #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER |
---|
39 | #define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER |
---|
40 | |
---|
41 | #define TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE*3) |
---|
42 | |
---|
43 | #define CONFIGURE_RTEMS_INIT_TASKS_TABLE |
---|
44 | |
---|
45 | #include <confdefs.h> |
---|
46 | |
---|
47 | rtems_task Init( |
---|
48 | rtems_task_argument argument |
---|
49 | ) |
---|
50 | { |
---|
51 | puts( "\n\n*** PUTENV/GETENV TEST ***" ); |
---|
52 | |
---|
53 | puts( "putenv(\"FOO=BAR\") - expected to work" ); |
---|
54 | putenv ("FOO=BAR"); |
---|
55 | printf ("getenv(\"FOO\") ==> \"%s\"\n", getenv ("FOO")); |
---|
56 | |
---|
57 | puts( "*** END OF PUTENV/GETENV TEST ***" ); |
---|
58 | exit(0); |
---|
59 | } |
---|