From 2b76c8dc25a53ce642992ef43d9126d14bfc83fa Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 2010 19:01:29 +0000 Subject: 2010-11-16 Joel Sherrill * sp70/init.c, sp70/sp70.scn: Fix bug in test which lead to random memory corruption. --- testsuites/sptests/ChangeLog | 5 +++++ testsuites/sptests/sp70/init.c | 7 ++++++- testsuites/sptests/sp70/sp70.scn | 17 ++++++++++++++++- 3 files changed, 27 insertions(+), 2 deletions(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index 9cda36bd7f..0bb4fb7a28 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,8 @@ +2010-11-16 Joel Sherrill + + * sp70/init.c, sp70/sp70.scn: Fix bug in test which lead to random + memory corruption. + 2010-10-25 Joel Sherrill * spchain/init.c: Attempt to improve coverage. diff --git a/testsuites/sptests/sp70/init.c b/testsuites/sptests/sp70/init.c index a0c1076edb..a574467601 100644 --- a/testsuites/sptests/sp70/init.c +++ b/testsuites/sptests/sp70/init.c @@ -12,7 +12,7 @@ #include #include "test_support.h" -rtems_id TaskID[4]; +rtems_id TaskID[10]; void create_helper(int task) { @@ -57,6 +57,11 @@ rtems_task Init( delete_helper( 4 ); delete_helper( 5 ); + create_helper( 2 ); + create_helper( 3 ); + create_helper( 4 ); + create_helper( 5 ); + puts( "*** END OF TEST 70 ***" ); rtems_test_exit(0); diff --git a/testsuites/sptests/sp70/sp70.scn b/testsuites/sptests/sp70/sp70.scn index a63612096b..5ca326bce1 100644 --- a/testsuites/sptests/sp70/sp70.scn +++ b/testsuites/sptests/sp70/sp70.scn @@ -1 +1,16 @@ -XXX fill in with test output +*** TEST 70 *** +Creating task 1 - OK +Creating task 2 - OK +Creating task 3 - OK +Creating task 4 - OK +Creating task 5 - OK +Creating task 6 - OK +Deleting task 2 +Deleting task 3 +Deleting task 4 +Deleting task 5 +Creating task 2 - OK +Creating task 3 - OK +Creating task 4 - OK +Creating task 5 - OK +*** END OF TEST 70 *** -- cgit v1.2.3