summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/putenvtest
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 08:10:40 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-20 09:10:26 +0100
commitf8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133 (patch)
tree851dc4a6921d6cc7936aefa6343c516fff452dd8 /testsuites/libtests/putenvtest
parenttests/fstests: Remove duplicate begin/end messages (diff)
downloadrtems-f8b2eb03f72d9d1a2c2fe9bc8775c53e4b594133.tar.bz2
tests/libtests: Use <rtems/test.h>
Diffstat (limited to 'testsuites/libtests/putenvtest')
-rw-r--r--testsuites/libtests/putenvtest/init.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/libtests/putenvtest/init.c b/testsuites/libtests/putenvtest/init.c
index 40784228aa..c1da955f27 100644
--- a/testsuites/libtests/putenvtest/init.c
+++ b/testsuites/libtests/putenvtest/init.c
@@ -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);
}