change log for rtems (2011-07-26)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jul 26 20:10:33 UTC 2011
*joel*:
2011-07-26 Joel Sherrill <joel.sherrilL at OARcorp.com>
* sp74/init.c, sp74/sp74.scn: Fix to get the case hit per coverage
reports.
M 1.464 testsuites/sptests/ChangeLog
M 1.3 testsuites/sptests/sp74/init.c
M 1.2 testsuites/sptests/sp74/sp74.scn
diff -u rtems/testsuites/sptests/ChangeLog:1.463 rtems/testsuites/sptests/ChangeLog:1.464
--- rtems/testsuites/sptests/ChangeLog:1.463 Tue Jul 26 12:33:50 2011
+++ rtems/testsuites/sptests/ChangeLog Tue Jul 26 14:44:20 2011
@@ -1,3 +1,8 @@
+2011-07-26 Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+ * sp74/init.c, sp74/sp74.scn: Fix to get the case hit per coverage
+ reports.
+
2011-07-26 Joel Sherrill <joel.sherrill at oarcorp.com>
* sp74/init.c: Does not need clock driver.
diff -u rtems/testsuites/sptests/sp74/init.c:1.2 rtems/testsuites/sptests/sp74/init.c:1.3
--- rtems/testsuites/sptests/sp74/init.c:1.2 Tue Jul 26 12:33:51 2011
+++ rtems/testsuites/sptests/sp74/init.c Tue Jul 26 14:44:20 2011
@@ -15,11 +15,6 @@
#include <tmacros.h>
-/*
- * Keep the names and IDs in global variables so another task can use them.
- */
-rtems_id Task_id[ 3 ]; /* array of task ids */
-rtems_name Task_name[ 3 ]; /* array of task names */
rtems_task Test_task(
rtems_task_argument index
@@ -35,41 +30,25 @@
rtems_task_argument argument
)
{
- rtems_status_code status;
+ rtems_status_code status;
+ rtems_id id;
puts( "\n\n*** SP74 (YIELD) TEST ***" );
- Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );
- Task_name[ 2 ] = rtems_build_name( 'T', 'A', '2', ' ' );
-
puts( "Create TA1 at higher priority task" );
status = rtems_task_create(
- Task_name[ 1 ],
+ rtems_build_name( 'T', 'A', '1', ' ' ),
1,
RTEMS_MINIMUM_STACK_SIZE,
RTEMS_DEFAULT_MODES,
RTEMS_DEFAULT_ATTRIBUTES,
- &Task_id[ 1 ]
+ &id
);
directive_failed( status, "create 1" );
- puts( "Create TA2 at equal priority task" );
- status = rtems_task_create(
- Task_name[ 2 ],
- 2,
- RTEMS_MINIMUM_STACK_SIZE,
- RTEMS_DEFAULT_MODES,
- RTEMS_DEFAULT_ATTRIBUTES,
- &Task_id[ 2 ]
- );
- directive_failed( status, "create 2" );
-
- status = rtems_task_start( Task_id[ 1 ], Test_task, 1 );
+ status = rtems_task_start( id, Test_task, 1 );
directive_failed( status, "start 1" );
- status = rtems_task_start( Task_id[ 2 ], Test_task, 2 );
- directive_failed( status, "start 2" );
-
puts( "Yield to TA1" );
status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
directive_failed( status, "yield" );
diff -u rtems/testsuites/sptests/sp74/sp74.scn:1.1 rtems/testsuites/sptests/sp74/sp74.scn:1.2
--- rtems/testsuites/sptests/sp74/sp74.scn:1.1 Tue Jul 26 12:30:30 2011
+++ rtems/testsuites/sptests/sp74/sp74.scn Tue Jul 26 14:44:20 2011
@@ -1,6 +1,5 @@
*** SP74 (YIELD) TEST ***
Create TA1 at higher priority task
-Create TA2 at equal priority task
Yield to TA1
Successfully yielded it to higher priority task
*** END OF SP74 TEST ***
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20110726/8128ce71/attachment-0001.html>
More information about the vc
mailing list