summaryrefslogtreecommitdiffstats
path: root/testsuites/samples/pppd
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-10 16:31:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-17 09:17:36 +0100
commit9391f6d6637c752046cdfd89ae2eeea147496e44 (patch)
treefe6ad09c222cdf0489414d4a5a644b10845de333 /testsuites/samples/pppd
parentsapi: Add <rtems/test.h> (diff)
downloadrtems-9391f6d6637c752046cdfd89ae2eeea147496e44.tar.bz2
tests/samples: Use <rtems/test.h>
Diffstat (limited to 'testsuites/samples/pppd')
-rw-r--r--testsuites/samples/pppd/init.c4
-rw-r--r--testsuites/samples/pppd/system.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c
index 4519ad64aa..44b27607c6 100644
--- a/testsuites/samples/pppd/init.c
+++ b/testsuites/samples/pppd/init.c
@@ -24,11 +24,15 @@
#include "netconfig.h"
#endif
+const char rtems_test_name[] = "PPPD";
+
rtems_task Init(rtems_task_argument argument)
{
#if BSP_SMALL_MEMORY
printf("NO NETWORKING. MEMORY TOO SMALL");
#else
+ rtems_test_begin();
+
/* initialize network */
rtems_bsdnet_initialize_network();
rtems_pppd_initialize();
diff --git a/testsuites/samples/pppd/system.h b/testsuites/samples/pppd/system.h
index 5e70ddb2fc..a2282ac90f 100644
--- a/testsuites/samples/pppd/system.h
+++ b/testsuites/samples/pppd/system.h
@@ -2,6 +2,7 @@
#define SYSTEM_H
#include <rtems.h>
+#include <rtems/test.h>
#include <rtems/console.h>
#include <rtems/clockdrv.h>
@@ -40,6 +41,8 @@ extern int pppdapp_initialize(void);
RTEMS_NO_ASR | \
RTEMS_INTERRUPT_LEVEL(0))
+#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION
+
#include <rtems/confdefs.h>
#endif