[rtems commit] sptests/spintrcritical10: Avoid undefined memory

Sebastian Huber sebh at rtems.org
Fri Sep 12 14:04:38 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Sep 12 16:04:01 2014 +0200

sptests/spintrcritical10: Avoid undefined memory

---

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

diff --git a/testsuites/sptests/spintrcritical10/init.c b/testsuites/sptests/spintrcritical10/init.c
index 8959e5c..1d6720c 100644
--- a/testsuites/sptests/spintrcritical10/init.c
+++ b/testsuites/sptests/spintrcritical10/init.c
@@ -115,6 +115,7 @@ static void test_any_satisfy_before_timeout(test_context *ctx)
   );
 
   ctx->hit = false;
+  ctx->thread->Wait.count = 0;
 
   sc = rtems_timer_fire_after(ctx->timer, 1, any_satisfy_before_timeout, ctx);
   rtems_test_assert(sc == RTEMS_SUCCESSFUL);
@@ -207,6 +208,7 @@ static void test_all_satisfy_before_timeout(test_context *ctx)
   );
 
   ctx->hit = false;
+  ctx->thread->Wait.count = 0;
 
   sc = rtems_timer_fire_after(ctx->timer, 1, all_satisfy_before_timeout, ctx);
   rtems_test_assert(sc == RTEMS_SUCCESSFUL);
@@ -296,6 +298,7 @@ static void test_timeout_before_all_satisfy(test_context *ctx)
   );
 
   ctx->hit = false;
+  ctx->thread->Wait.count = 0;
 
   sc = rtems_timer_fire_after(ctx->timer, 1, timeout_before_satisfied, ctx);
   rtems_test_assert(sc == RTEMS_SUCCESSFUL);



More information about the vc mailing list