[rtems commit] testsuite: Fix networking samples to use the RTEMS printer.

Chris Johns chrisj at rtems.org
Thu May 26 05:53:11 UTC 2016


Module:    rtems
Branch:    master
Commit:    3039e1840ccf7594476a6d46d255862dff0ffd98
Changeset: http://git.rtems.org/rtems/commit/?id=3039e1840ccf7594476a6d46d255862dff0ffd98

Author:    Chris Johns <chrisj at rtems.org>
Date:      Thu May 26 15:51:44 2016 +1000

testsuite: Fix networking samples to use the RTEMS printer.

---

 testsuites/samples/loopback/init.c | 3 +++
 testsuites/samples/pppd/init.c     | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c
index ccaf3c6..a6ef08b 100644
--- a/testsuites/samples/loopback/init.c
+++ b/testsuites/samples/loopback/init.c
@@ -13,6 +13,7 @@
 #include <bsp.h>
 
 const char rtems_test_name[] = "LOOPBACK";
+rtems_printer rtems_test_printer;
 
 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
@@ -247,6 +248,8 @@ Init (rtems_task_argument ignored)
 {
     rtems_status_code sc;
 
+    rtems_print_printer_printf(&rtems_test_printer);
+
     rtems_test_begin();
 
     sc = rtems_semaphore_create(rtems_build_name('P','m','t','x'),
diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c
index 7217684..a8daedc 100644
--- a/testsuites/samples/pppd/init.c
+++ b/testsuites/samples/pppd/init.c
@@ -24,6 +24,7 @@
 #include "netconfig.h"
 
 const char rtems_test_name[] = "PPPD";
+rtems_printer rtems_test_printer;
 
 static void notification(int fd, int seconds_remaining, void *arg)
 {
@@ -37,6 +38,8 @@ rtems_task Init(rtems_task_argument argument)
 {
   rtems_status_code status;
 
+  rtems_print_printer_printf(&rtems_test_printer);
+
   rtems_test_begin();
 
   status = rtems_shell_wait_for_input(




More information about the vc mailing list