source: rtems/testsuites/libtests/putenvtest/init.c @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.3 KB
Line 
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-1999.
15 *  On-Line Applications Research Corporation (OAR).
16 *
17 *  The license and distribution terms for this file may be
18 *  found in the file LICENSE in this distribution or at
19 *  http://www.OARcorp.com/rtems/license.html.
20 *
21 *  $Id$
22 */
23
24#define TEST_INIT
25#include <tmacros.h>
26#include <stdio.h>
27#include <stdlib.h>
28
29rtems_task Init(
30  rtems_task_argument argument
31);
32
33/* configuration information */
34
35#define CONFIGURE_SPTEST
36
37#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
38#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
39
40#define TASK_STACK_SIZE (RTEMS_MINIMUM_STACK_SIZE*3)
41
42#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
43
44#include <confdefs.h>
45
46rtems_task Init(
47  rtems_task_argument argument
48)
49{
50  puts( "\n\n*** PUTENV/GETENV TEST ***" );
51
52  puts( "putenv(\"FOO=BAR\") - expected to work" );
53  putenv ("FOO=BAR");
54  printf ("getenv(\"FOO\") ==> \"%s\"\n", getenv ("FOO"));
55
56  puts( "*** END OF PUTENV/GETENV TEST ***" );
57  exit(0);
58}
Note: See TracBrowser for help on using the repository browser.