[rtems commit] sptests/spsysinit01: Move begin of test message

Sebastian Huber sebh at rtems.org
Mon Jun 20 06:21:10 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jun 20 08:10:51 2016 +0200

sptests/spsysinit01: Move begin of test message

---

 testsuites/sptests/spsysinit01/init.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c
index c598ee5..88185da 100644
--- a/testsuites/sptests/spsysinit01/init.c
+++ b/testsuites/sptests/spsysinit01/init.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 embedded brains GmbH.  All rights reserved.
+ * Copyright (c) 2015, 2016 embedded brains GmbH.  All rights reserved.
  *
  *  embedded brains GmbH
  *  Dornierstr. 4
@@ -175,7 +175,6 @@ static void next_step(init_step expected)
 
 FIRST(RTEMS_SYSINIT_BSP_WORK_AREAS)
 {
-  TEST_BEGIN();
   assert(_Workspace_Area.area_begin == 0);
   next_step(BSP_WORK_AREAS_PRE);
 }
@@ -197,6 +196,12 @@ FIRST(RTEMS_SYSINIT_BSP_START)
 
 LAST(RTEMS_SYSINIT_BSP_START)
 {
+  /*
+   * Some BSPs initialize the printk() support in bsp_start().  So, print begin
+   * of test after bsp_start().
+   */
+  TEST_BEGIN();
+
   next_step(BSP_START_POST);
 }
 




More information about the vc mailing list