tests/libtests: Use <rtems/test.h>

This commit is contained in:
Sebastian Huber
2014-03-17 08:10:40 +01:00
parent 802d3ba712
commit f8b2eb03f7
82 changed files with 449 additions and 146 deletions

View File

@@ -28,6 +28,8 @@
#include <stdio.h>
#include <stdlib.h>
const char rtems_test_name[] = "PUTENVTEST";
rtems_task Init(
rtems_task_argument argument
);
@@ -41,6 +43,8 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_TASKS 1
#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#include <rtems/confdefs.h>
@@ -49,12 +53,12 @@ rtems_task Init(
rtems_task_argument argument
)
{
puts( "\n\n*** PUTENV/GETENV TEST ***" );
TEST_BEGIN();
puts( "putenv(\"FOO=BAR\") - expected to work" );
putenv ("FOO=BAR");
printf ("getenv(\"FOO\") ==> \"%s\"\n", getenv ("FOO"));
puts( "*** END OF PUTENV/GETENV TEST ***" );
TEST_END();
rtems_test_exit(0);
}