[rtems commit] sp54: Fix test case

Sebastian Huber sebh at rtems.org
Mon Aug 1 07:07:37 UTC 2022


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug  1 09:14:07 2022 +0200

sp54: Fix test case

Since commit 6a6580331df3e09516d50f37d4dd5fd57825c08a, the local table is
zero-initialized.  Use an initial object control block instead.

Update #4678.

---

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

diff --git a/testsuites/sptests/sp54/init.c b/testsuites/sptests/sp54/init.c
index 9ec98e19e0..172eb2b1b0 100644
--- a/testsuites/sptests/sp54/init.c
+++ b/testsuites/sptests/sp54/init.c
@@ -88,7 +88,7 @@ static void check_dirty_memory( void )
   rtems_test_assert( p != NULL );
   rtems_test_assert( *p == 0xcf );
 
-  p = (unsigned char *) _Thread_Information.Objects.local_table;
+  p = (unsigned char *) _Thread_Information.Objects.initial_objects;
   rtems_test_assert( *p == 0xcf );
 }
 
@@ -106,7 +106,7 @@ static void check_zero_workspace_automatically( void )
   rtems_test_assert( p != NULL );
   rtems_test_assert( *p == 0 );
 
-  p = (unsigned char *) _Thread_Information.Objects.local_table;
+  p = (unsigned char *) _Thread_Information.Objects.initial_objects;
   rtems_test_assert( *p == 0 );
 }
 



More information about the vc mailing list