[rtems commit] sptests/sp44: Fix end of test output

Sebastian Huber sebh at rtems.org
Mon Mar 31 08:09:15 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Mar 28 11:34:16 2014 +0100

sptests/sp44: Fix end of test output

---

 testsuites/sptests/sp44/init.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/testsuites/sptests/sp44/init.c b/testsuites/sptests/sp44/init.c
index 26e4283..5b11ead 100644
--- a/testsuites/sptests/sp44/init.c
+++ b/testsuites/sptests/sp44/init.c
@@ -62,12 +62,13 @@ rtems_task TaskAB_entry(rtems_task_argument me)
           me,
           1 - me
       );
-      turn = 1 - me;
 
       if ( ++iterations == 10 ) {
         TEST_END();
         exit( 0 );
       }
+
+      turn = 1 - me;
     }
   }
 }




More information about the vc mailing list