[rtems commit] sptests/sptask_err04: Fix broken test

Sebastian Huber sebh at rtems.org
Mon Mar 31 08:09:16 UTC 2014


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Mar 31 09:23:48 2014 +0200

sptests/sptask_err04: Fix broken test

---

 testsuites/sptests/sptask_err04/init.c   |    4 +++-
 testsuites/sptests/sptask_err04/system.h |    2 +-
 testsuites/sptests/sptask_err04/task1.c  |    2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/testsuites/sptests/sptask_err04/init.c b/testsuites/sptests/sptask_err04/init.c
index 90cb2e1..cedeac3 100644
--- a/testsuites/sptests/sptask_err04/init.c
+++ b/testsuites/sptests/sptask_err04/init.c
@@ -26,6 +26,8 @@ rtems_task Init(
   
   TEST_BEGIN();
 
+  Task_id[ 0 ] = rtems_task_self();
+
   Task_name[ 1 ]       =  rtems_build_name( 'T', 'A', '1', ' ' );
 
   /* priority of 0 error */
@@ -65,7 +67,7 @@ rtems_task Init(
   status = rtems_task_create(
     Task_name[ 1 ],
     4,
-    RTEMS_MINIMUM_STACK_SIZE * 3,
+    RTEMS_MINIMUM_STACK_SIZE,
     RTEMS_DEFAULT_MODES,
     RTEMS_DEFAULT_ATTRIBUTES,
     &Task_id[ 1 ]
diff --git a/testsuites/sptests/sptask_err04/system.h b/testsuites/sptests/sptask_err04/system.h
index e6632ff..ef3e781 100644
--- a/testsuites/sptests/sptask_err04/system.h
+++ b/testsuites/sptests/sptask_err04/system.h
@@ -29,7 +29,7 @@ rtems_task Task_1(
 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
 
-#define CONFIGURE_MAXIMUM_TASKS               3 
+#define CONFIGURE_MAXIMUM_TASKS 2
 
 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
 
diff --git a/testsuites/sptests/sptask_err04/task1.c b/testsuites/sptests/sptask_err04/task1.c
index 022aff9..0d182e0 100644
--- a/testsuites/sptests/sptask_err04/task1.c
+++ b/testsuites/sptests/sptask_err04/task1.c
@@ -79,7 +79,7 @@ rtems_task Task_1(
 
   /* unused Id so invalid now */
   status = rtems_task_get_note(
-    _RTEMS_tasks_Information.maximum_id,
+    Task_id[ 0 ],
     RTEMS_NOTEPAD_LAST,
     &notepad_value
   );




More information about the vc mailing list