[rtems commit] Fix a bug in spfreechain01 test case.

Sebastian Huber sebh at rtems.org
Sun Aug 11 17:17:19 UTC 2013


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

Author:    Zhongwei Yao <ashi08104 at gmail.com>
Date:      Mon Aug  5 10:35:21 2013 -0400

Fix a bug in spfreechain01 test case.

---

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

diff --git a/testsuites/sptests/spfreechain01/init.c b/testsuites/sptests/spfreechain01/init.c
index 16c7c9f..a6cba05 100644
--- a/testsuites/sptests/spfreechain01/init.c
+++ b/testsuites/sptests/spfreechain01/init.c
@@ -57,7 +57,7 @@ bool my_freechain_extend_heap( Freechain_Control *freechain )
         " - OK" );
   for ( i = 0; i < self->bump_count; i++ ) {
       _Freechain_Put(freechain,
-                          nodes + i * node_size);
+                          nodes + i);
   }
   return true;
 }
@@ -81,7 +81,7 @@ bool my_freechain_extend_workspace( Freechain_Control *freechain )
 
   for ( i = 0; i < self->bump_count; i++ ) {
       _Freechain_Put(freechain,
-                          nodes + i * node_size);
+                          nodes + i);
   }
   return true;
 }




More information about the vc mailing list