[rtems commit] tmtests/tmcontext01: Use <rtems/test.h>

Sebastian Huber sebh at rtems.org
Tue Mar 25 15:39:29 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 25 14:15:52 2014 +0100

tmtests/tmcontext01: Use <rtems/test.h>

---

 testsuites/tmtests/tmcontext01/init.c |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/testsuites/tmtests/tmcontext01/init.c b/testsuites/tmtests/tmcontext01/init.c
index 04aa26f..2f5ada4 100644
--- a/testsuites/tmtests/tmcontext01/init.c
+++ b/testsuites/tmtests/tmcontext01/init.c
@@ -201,13 +201,9 @@ static void Init(rtems_task_argument arg)
 {
   uint32_t load = 0;
 
-  printf(
-    "\n"
-    "\n"
-    "<?xml version=\"1.0\"?>\n"
-    "<!-- *** TEST TMCONTEXT 1 *** -->\n"
-    "<Test>\n"
-  );
+  TEST_BEGIN();
+
+  printf("<Test>\n");
 
   data_size = rtems_cache_get_data_cache_size(0);
   if (data_size > 0) {
@@ -246,11 +242,9 @@ static void Init(rtems_task_argument arg)
     test(true, load);
   }
 
-  printf(
-    "</Test>\n"
-    "<!-- *** END OF TEST TMCONTEXT 1 *** -->\n"
-  );
+  printf("</Test>\n");
 
+  TEST_END();
   rtems_test_exit(0);
 }
 




More information about the vc mailing list