[rtems commit] smptests/smp01: Fix semaphore count
Sebastian Huber
sebh at rtems.org
Mon May 27 10:45:20 UTC 2013
Module: rtems
Branch: master
Commit: db0cede12ce7d28fb347bbda565eac56aa6482d8
Changeset: http://git.rtems.org/rtems/commit/?id=db0cede12ce7d28fb347bbda565eac56aa6482d8
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri Jan 18 09:42:00 2013 +0100
smptests/smp01: Fix semaphore count
The locked print needs one semaphore.
---
testsuites/smptests/smp01/system.h | 1 +
testsuites/smptests/smp02/system.h | 2 +-
testsuites/smptests/smp03/system.h | 2 ++
testsuites/smptests/smp05/init.c | 2 ++
testsuites/smptests/smp06/init.c | 2 ++
testsuites/smptests/smp07/init.c | 2 +-
testsuites/smptests/smp08/system.h | 2 +-
testsuites/smptests/smp09/init.c | 2 ++
8 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/testsuites/smptests/smp01/system.h b/testsuites/smptests/smp01/system.h
index 4558673..e360e37 100644
--- a/testsuites/smptests/smp01/system.h
+++ b/testsuites/smptests/smp01/system.h
@@ -30,6 +30,7 @@ rtems_task Test_task(
#define CONFIGURE_MAXIMUM_TASKS \
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
diff --git a/testsuites/smptests/smp02/system.h b/testsuites/smptests/smp02/system.h
index c3836d7..269c7c0 100644
--- a/testsuites/smptests/smp02/system.h
+++ b/testsuites/smptests/smp02/system.h
@@ -37,7 +37,7 @@ rtems_task Test_task(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 2
#include <rtems/confdefs.h>
diff --git a/testsuites/smptests/smp03/system.h b/testsuites/smptests/smp03/system.h
index bae95a7..e8138af 100644
--- a/testsuites/smptests/smp03/system.h
+++ b/testsuites/smptests/smp03/system.h
@@ -31,6 +31,8 @@ rtems_task Test_task(
#define CONFIGURE_MAXIMUM_TASKS \
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_INIT_TASK_STACK_SIZE \
(3 * CONFIGURE_MINIMUM_TASK_STACK_SIZE)
diff --git a/testsuites/smptests/smp05/init.c b/testsuites/smptests/smp05/init.c
index 50b14da..1078ffd 100644
--- a/testsuites/smptests/smp05/init.c
+++ b/testsuites/smptests/smp05/init.c
@@ -72,6 +72,8 @@ rtems_task Init(
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
diff --git a/testsuites/smptests/smp06/init.c b/testsuites/smptests/smp06/init.c
index db13eac..f524b1f 100644
--- a/testsuites/smptests/smp06/init.c
+++ b/testsuites/smptests/smp06/init.c
@@ -114,6 +114,8 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_TASKS 4
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+
#define CONFIGURE_INIT_TASK_PRIORITY 2
#define CONFIGURE_INIT_TASK_INITIAL_MODES RTEMS_PREEMPT
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
diff --git a/testsuites/smptests/smp07/init.c b/testsuites/smptests/smp07/init.c
index 0cd820a..04bf4f2 100644
--- a/testsuites/smptests/smp07/init.c
+++ b/testsuites/smptests/smp07/init.c
@@ -162,7 +162,7 @@ rtems_task Init(
#define CONFIGURE_MAXIMUM_TASKS 2
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
-#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 2
#define CONFIGURE_INIT
diff --git a/testsuites/smptests/smp08/system.h b/testsuites/smptests/smp08/system.h
index e1afeea..aec0c0b 100644
--- a/testsuites/smptests/smp08/system.h
+++ b/testsuites/smptests/smp08/system.h
@@ -35,7 +35,7 @@ rtems_task Test_task(
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)
-#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+#define CONFIGURE_MAXIMUM_SEMAPHORES 2
#include <rtems/confdefs.h>
diff --git a/testsuites/smptests/smp09/init.c b/testsuites/smptests/smp09/init.c
index 5257b96..043aa3d 100644
--- a/testsuites/smptests/smp09/init.c
+++ b/testsuites/smptests/smp09/init.c
@@ -84,6 +84,8 @@ rtems_task Init(
(1 + CONFIGURE_SMP_MAXIMUM_PROCESSORS)
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+#define CONFIGURE_MAXIMUM_SEMAPHORES 1
+
#define CONFIGURE_INIT
#include <rtems/confdefs.h>
More information about the vc
mailing list