[rtems commit] sptests/spprintk: Use <rtems/test.h>

Sebastian Huber sebh at rtems.org
Tue Mar 25 08:40:07 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 25 09:46:45 2014 +0100

sptests/spprintk: Use <rtems/test.h>

---

 testsuites/sptests/spprintk/init.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/testsuites/sptests/spprintk/init.c b/testsuites/sptests/spprintk/init.c
index eb68d12..eea17ad 100644
--- a/testsuites/sptests/spprintk/init.c
+++ b/testsuites/sptests/spprintk/init.c
@@ -16,6 +16,8 @@
 #include <tmacros.h>
 #include <rtems/bspIo.h>
 
+const char rtems_test_name[] = "SPPRINTK";
+
 /* forward declarations to avoid warnings */
 rtems_task Init(rtems_task_argument argument);
 int test_getchar(void);
@@ -122,7 +124,7 @@ rtems_task Init(
   rtems_task_argument argument
 )
 {
-  printk( "\n\n*** TEST PRINTK ***\n" );
+  rtems_test_begink();
 
   do_putk();
   putk("");
@@ -132,7 +134,7 @@ rtems_task Init(
 
   do_getchark();
 
-  printk( "*** END OF TEST PRINTK ***\n" );
+  rtems_test_endk();
   rtems_test_exit( 0 );
 }
 




More information about the vc mailing list