From 82478ffc7db2e3f07ee89b91e40647bb679912cd Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 2 Oct 2008 20:57:28 +0000 Subject: 2008-10-02 Joel Sherrill * sp09/screen01.c, sp09/screen12.c, sp25/system.h, sp25/task1.c, sp28/init.c, sp39/init.c, sp41/init.c, spfatal01/testcase.h, spfatal08/testcase.h: Change size_t to ssize_t on all Heap, Workspace and Region calls. On 16-bit architectures, size_t can be 16-bits which would limit sizes to 64K. Also address constants which overflowed on 16-bit integer targets. --- testsuites/sptests/ChangeLog | 9 +++++++++ testsuites/sptests/sp09/screen01.c | 2 +- testsuites/sptests/sp09/screen12.c | 2 +- testsuites/sptests/sp25/system.h | 2 +- testsuites/sptests/sp25/task1.c | 2 +- testsuites/sptests/sp28/init.c | 19 +++++++++++-------- testsuites/sptests/sp39/init.c | 8 ++++---- testsuites/sptests/sp41/init.c | 8 ++++---- testsuites/sptests/spfatal01/testcase.h | 2 +- testsuites/sptests/spfatal08/testcase.h | 2 +- 10 files changed, 34 insertions(+), 22 deletions(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog index e01a96abdc..f505c930d6 100644 --- a/testsuites/sptests/ChangeLog +++ b/testsuites/sptests/ChangeLog @@ -1,3 +1,12 @@ +2008-10-02 Joel Sherrill + + * sp09/screen01.c, sp09/screen12.c, sp25/system.h, sp25/task1.c, + sp28/init.c, sp39/init.c, sp41/init.c, spfatal01/testcase.h, + spfatal08/testcase.h: Change size_t to ssize_t on all Heap, Workspace + and Region calls. On 16-bit architectures, size_t can be 16-bits + which would limit sizes to 64K. Also address constants which + overflowed on 16-bit integer targets. + 2008-10-01 Joel Sherrill * sp43/sp43.scn: Bump version to 4.9.99.0 diff --git a/testsuites/sptests/sp09/screen01.c b/testsuites/sptests/sp09/screen01.c index 3c0b864e6e..3de2811d8d 100644 --- a/testsuites/sptests/sp09/screen01.c +++ b/testsuites/sptests/sp09/screen01.c @@ -62,7 +62,7 @@ void Screen1() puts( "TA1 - rtems_task_get_note - RTEMS_INVALID_ID" ); status = rtems_task_get_note( - _RTEMS_tasks_Information.minimum_id + (3<= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -150,7 +150,7 @@ rtems_task Init( max += 2; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -183,7 +183,7 @@ rtems_task Init( max = 0; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } diff --git a/testsuites/sptests/sp41/init.c b/testsuites/sptests/sp41/init.c index b259be614f..db6c2c42a3 100644 --- a/testsuites/sptests/sp41/init.c +++ b/testsuites/sptests/sp41/init.c @@ -74,7 +74,7 @@ rtems_task Init( rtems_id timer; int i; int max; - int iterations = 0; + uint32_t iterations = 0; puts( "\n\n*** TEST 41 ***" ); @@ -119,7 +119,7 @@ rtems_task Init( max += 2; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -155,7 +155,7 @@ rtems_task Init( max += 2; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } @@ -188,7 +188,7 @@ rtems_task Init( max = 0; /* with our clock tick, this is about 30 seconds */ - if ( ++iterations >= 4 * 1000 * 30) + if ( ++iterations >= 4L * 1000L * 30L) break; } diff --git a/testsuites/sptests/spfatal01/testcase.h b/testsuites/sptests/spfatal01/testcase.h index 28fc5584d4..2c824fddce 100644 --- a/testsuites/sptests/spfatal01/testcase.h +++ b/testsuites/sptests/spfatal01/testcase.h @@ -12,7 +12,7 @@ #define CONFIGURE_INIT_TASK_STACK_SIZE 0 rtems_initialization_tasks_table Initialization_tasks[] = { { rtems_build_name('I', 'N', 'I', ' '), - 64 * 1024 * 1024, + 32UL * 1024UL, 1, RTEMS_DEFAULT_ATTRIBUTES, Init, diff --git a/testsuites/sptests/spfatal08/testcase.h b/testsuites/sptests/spfatal08/testcase.h index 8a2065c2ee..a44b72dd5a 100644 --- a/testsuites/sptests/spfatal08/testcase.h +++ b/testsuites/sptests/spfatal08/testcase.h @@ -29,7 +29,7 @@ rtems_initialization_tasks_table Initialization_tasks[] = { #define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE #define FATAL_ERROR_EXPECTED_ERROR INTERNAL_ERROR_WORKSPACE_ALLOCATION -char Workspace[ 64 * 1024 ] CPU_STRUCTURE_ALIGNMENT; +char Workspace[ 256 ] CPU_STRUCTURE_ALIGNMENT; void force_error() { -- cgit v1.2.3