summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-21 08:49:57 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-11-21 08:52:29 +0100
commit11925eef789566a226d8eaacbceb4d89df787ebc (patch)
treed9012073fa76528fd205eed96cc016d566f7c89d /testsuites/sptests
parentsmpschedaffinity05: Change semaphore attributes. (diff)
downloadrtems-11925eef789566a226d8eaacbceb4d89df787ebc.tar.bz2
Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/sp48/init.c8
-rw-r--r--testsuites/sptests/sp63/init.c3
2 files changed, 5 insertions, 6 deletions
diff --git a/testsuites/sptests/sp48/init.c b/testsuites/sptests/sp48/init.c
index e1055285ab..701aa17035 100644
--- a/testsuites/sptests/sp48/init.c
+++ b/testsuites/sptests/sp48/init.c
@@ -20,8 +20,8 @@ const char rtems_test_name[] = "SP 48";
rtems_task Init(rtems_task_argument ignored);
-#define MAX 5000
-rtems_id Semaphores[MAX];
+#define SEMA_COUNT 5000
+rtems_id Semaphores[SEMA_COUNT];
rtems_task Init(rtems_task_argument ignored)
{
@@ -35,7 +35,7 @@ rtems_task Init(rtems_task_argument ignored)
"Largest C program heap block available: %zu\n",
malloc_free_space()
);
- for (i=0 ; i<MAX ; i++ ) {
+ for (i=0 ; i<SEMA_COUNT ; i++ ) {
sc = rtems_semaphore_create(
rtems_build_name('s', 'e', 'm', ' '),
1,
@@ -57,7 +57,7 @@ rtems_task Init(rtems_task_argument ignored)
}
created = i;
- if ( created == MAX )
+ if ( created == SEMA_COUNT )
puts( "Created all semaphores allowed in this test" );
printf( "%d semaphores created\n", i );
diff --git a/testsuites/sptests/sp63/init.c b/testsuites/sptests/sp63/init.c
index 9b6dd6f598..6f1c837d84 100644
--- a/testsuites/sptests/sp63/init.c
+++ b/testsuites/sptests/sp63/init.c
@@ -23,8 +23,7 @@ void test_case_one(void);
void test_case_two(void);
void test_case_three(void);
-#define MAX 256
-uint32_t Memory[MAX];
+uint32_t Memory[256];
Heap_Control Heap;
/*