<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-07-28)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-28 Petr Benes <benesp16@fel.cvut.cz>

        PR 1858/testing
        * sp74/sp74.doc: Fix after changes.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.466&r2=text&tr2=1.467&diff_format=h">M</a></td><td width='1%'>1.467</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp74/sp74.doc.diff?r1=text&tr1=1.1&r2=text&tr2=1.2&diff_format=h">M</a></td><td width='1%'>1.2</td><td width='100%'>testsuites/sptests/sp74/sp74.doc</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.466 rtems/testsuites/sptests/ChangeLog:1.467
--- rtems/testsuites/sptests/ChangeLog:1.466    Wed Jul 27 08:35:11 2011
+++ rtems/testsuites/sptests/ChangeLog  Thu Jul 28 15:58:17 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-07-28    Petr Benes <benesp16@fel.cvut.cz>
+
+       PR 1858/testing
+       * sp74/sp74.doc: Fix after changes.
+
</font> 2011-07-27        Petr Benes <benesp16@fel.cvut.cz>
 
        PR 1854/cpukit

<font color='#006600'>diff -u rtems/testsuites/sptests/sp74/sp74.doc:1.1 rtems/testsuites/sptests/sp74/sp74.doc:1.2
--- rtems/testsuites/sptests/sp74/sp74.doc:1.1  Tue Jul 26 12:30:29 2011
+++ rtems/testsuites/sptests/sp74/sp74.doc      Thu Jul 28 15:58:18 2011
</font><font color='#997700'>@@ -11,7 +11,7 @@
</font> 
 This file describes the directives and concepts tested by this test set.
 
<font color='#880000'>-test set name:  spsimplesched04
</font><font color='#000088'>+test set name:  sp74
</font> 
 directives:
   + rtems_task_wake_after - yield case when non-preemptive
<font color='#997700'>@@ -19,8 +19,6 @@
</font> concepts:
 
 + This test is specifically designed to exercise the yield case when
<font color='#880000'>-  a task is non-preemptive, a higher priority task is ready, and there
-  are multiple threads ready at the same priority as the non-preemptive
-  task.
</font><font color='#000088'>+  a task is non-preemptive and a higher priority task is ready
</font> 
<font color='#880000'>-+ test where there is more than one thread at a priority with the executing thread being non-preemptive. Create a higher priority thread and then yield. sparc init task at priority 2, non-preemptive create task at priority 2 create task at priority 1 yield<span style="background-color: #FF0000"> </span>
</font><font color='#000088'>++ test where there is one thread at a priority with the executing thread being non-preemptive. Create a higher priority thread and then yield from Init task.
</font></pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-07-28 Pawel Zagorski <pzagor@agh.edu.pl>

        PR 1857/tests
        * Makefile.am, configure.ac: Add test where there is more than one
        thread at a priority with the executing thread being non-preemptive.
        * sp76/.cvsignore, sp76/Makefile.am, sp76/init.c, sp76/sp76.doc,
        sp76/sp76.scn: New files.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/ChangeLog.diff?r1=text&tr1=1.467&r2=text&tr2=1.468&diff_format=h">M</a></td><td width='1%'>1.468</td><td width='100%'>testsuites/sptests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/Makefile.am.diff?r1=text&tr1=1.113&r2=text&tr2=1.114&diff_format=h">M</a></td><td width='1%'>1.114</td><td width='100%'>testsuites/sptests/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/configure.ac.diff?r1=text&tr1=1.119&r2=text&tr2=1.120&diff_format=h">M</a></td><td width='1%'>1.120</td><td width='100%'>testsuites/sptests/configure.ac</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp76/.cvsignore?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/sp76/.cvsignore</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp76/Makefile.am?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/sp76/Makefile.am</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp76/init.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/sp76/init.c</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp76/sp76.doc?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/sp76/sp76.doc</font></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/sp76/sp76.scn?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">testsuites/sptests/sp76/sp76.scn</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.467 rtems/testsuites/sptests/ChangeLog:1.468
--- rtems/testsuites/sptests/ChangeLog:1.467    Thu Jul 28 15:58:17 2011
+++ rtems/testsuites/sptests/ChangeLog  Thu Jul 28 16:06:42 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-07-28    Pawel Zagorski <pzagor@agh.edu.pl>
+
+       PR 1857/tests
+       * Makefile.am, configure.ac: Add test where there is more than one
+       thread at a priority with the executing thread being non-preemptive.
+       * sp76/.cvsignore, sp76/Makefile.am, sp76/init.c, sp76/sp76.doc,
+       sp76/sp76.scn: New files.
+
</font> 2011-07-28        Petr Benes <benesp16@fel.cvut.cz>
 
        PR 1858/testing

<font color='#006600'>diff -u rtems/testsuites/sptests/Makefile.am:1.113 rtems/testsuites/sptests/Makefile.am:1.114
--- rtems/testsuites/sptests/Makefile.am:1.113  Tue Jul 26 15:53:09 2011
+++ rtems/testsuites/sptests/Makefile.am        Thu Jul 28 16:06:42 2011
</font><font color='#997700'>@@ -14,7 +14,7 @@
</font>     sp40 sp41 sp42 sp43 sp44 sp45 sp46 sp47 sp48 sp49 \
     sp50 sp51 sp52 sp53 sp54 sp55 sp56 sp57 sp58 sp59 \
     sp60      sp62 sp63 sp64 sp65 sp66 sp67 sp68 sp69 \
<font color='#880000'>-    sp70 sp71 sp72 sp73 sp74 sp75 \
</font><font color='#000088'>+    sp70 sp71 sp72 sp73 sp74 sp75 sp76 \
</font>     spassoc01 spchain spclockget spcoverage spobjgetnext \
     spnotepad01 spprintk spprivenv01 sprbtree01 spsize spstkalloc \
                spthreadq01 spwatchdog spwkspace \

<font color='#006600'>diff -u rtems/testsuites/sptests/configure.ac:1.119 rtems/testsuites/sptests/configure.ac:1.120
--- rtems/testsuites/sptests/configure.ac:1.119 Tue Jul 26 15:53:09 2011
+++ rtems/testsuites/sptests/configure.ac       Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -101,6 +101,7 @@
</font> sp73/Makefile
 sp74/Makefile
 sp75/Makefile
<font color='#000088'>+sp76/Makefile
</font> spassoc01/Makefile
 spchain/Makefile
 spclockget/Makefile

<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/sp76/.cvsignore:1.1
--- /dev/null   Thu Jul 28 16:10:16 2011
+++ rtems/testsuites/sptests/sp76/.cvsignore    Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -0,0 +1,2 @@
</font><font color='#000088'>+Makefile
+Makefile.in
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/sp76/Makefile.am:1.1
--- /dev/null   Thu Jul 28 16:10:16 2011
+++ rtems/testsuites/sptests/sp76/Makefile.am   Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+##
+## $Id$
+##
+
+MANAGERS = all
+
+rtems_tests_PROGRAMS = sp76
+sp76_SOURCES = init.c
+
+dist_rtems_tests_DATA = sp76.scn
+dist_rtems_tests_DATA += sp76.doc
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../automake/compile.am
+include $(top_srcdir)/../automake/leaf.am
+
+AM_CPPFLAGS += -I$(top_srcdir)/../support/include
+
+LINK_OBJS = $(sp76_OBJECTS) $(sp76_LDADD)
+LINK_LIBS = $(sp76_LDLIBS)
+
+sp76$(EXEEXT): $(sp76_OBJECTS) $(sp76_DEPENDENCIES)
+       @rm -f sp76$(EXEEXT)
+       $(make-exe)
+
+include $(top_srcdir)/../automake/local.am
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/sp76/init.c:1.1
--- /dev/null   Thu Jul 28 16:10:16 2011
+++ rtems/testsuites/sptests/sp76/init.c        Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -0,0 +1,101 @@
</font><font color='#000088'>+/*<span style="background-color: #FF0000"> </span>
+ *  COPYRIGHT (c) 2011.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tmacros.h>
+
+rtems_task Test_task(
+  rtems_task_argument index
+)
+{
+  rtems_status_code  status;
+  rtems_name         name;
+
+  status = rtems_object_get_classic_name( rtems_task_self(), &name );
+  directive_failed( status, "rtems_object_get_classic_name" );
+
+  put_name( name, FALSE );
+  puts( " - Successfully yielded it to higher priority task" );
+
+  puts( "*** END OF SP76 TEST ***" );
+  rtems_test_exit( 0 );
+}
+
+rtems_task Init(
+  rtems_task_argument argument
+)
+{
+  rtems_status_code     status;
+  rtems_id              id;
+  rtems_task_priority<span style="background-color: #FF0000"> </span>    old;
+
+  puts( "\n\n*** SP76 (YIELD) TEST ***" );
+
+  status = rtems_task_ident( RTEMS_SELF, RTEMS_SEARCH_ALL_NODES, &id );
+  directive_failed( status, "task ident" );
+
+  /* to make sure it is equal to TA2 */
+  puts( "Set Init task priority = 2" );
+  status = rtems_task_set_priority( id, 2, &old );
+  directive_failed( status, "task priority" );
+
+  puts( "Create TA1 at higher priority task" );
+  status = rtems_task_create(
+    rtems_build_name( 'T', 'A', '1', ' ' ),
+    1,
+    RTEMS_MINIMUM_STACK_SIZE,
+    RTEMS_DEFAULT_MODES,
+    RTEMS_DEFAULT_ATTRIBUTES,
+    &id
+  );
+  directive_failed( status, "create 1" );
+
+  status = rtems_task_start( id, Test_task, 1 );
+  directive_failed( status, "start 1" );
+
+  puts( "Create TA2 at equal priority task" );
+  status = rtems_task_create(
+    rtems_build_name( 'T', 'A', '2', ' ' ),
+    2,
+    RTEMS_MINIMUM_STACK_SIZE,
+    RTEMS_DEFAULT_MODES,
+    RTEMS_DEFAULT_ATTRIBUTES,
+    &id
+  );
+  directive_failed( status, "create 2" );
+
+  status = rtems_task_start( id, Test_task, 1 );
+  directive_failed( status, "start 2" );
+
+  puts( "Yield to TA1" );
+  status = rtems_task_wake_after( RTEMS_YIELD_PROCESSOR );
+  directive_failed( status, "yield" );
+
+  puts( "*** should now get here ***" );
+}
+
+/* configuration information */
+#include <bsp.h> /* for device driver prototypes */
+
+#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
+
+#define CONFIGURE_MAXIMUM_TASKS           3
+#define CONFIGURE_INIT_TASK_PRIORITY      2
+
+#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
+
+#define CONFIGURE_INIT
+#include <rtems/confdefs.h>
+/* end of file */
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/sp76/sp76.doc:1.1
--- /dev/null   Thu Jul 28 16:10:16 2011
+++ rtems/testsuites/sptests/sp76/sp76.doc      Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -0,0 +1,26 @@
</font><font color='#000088'>+#
+#  $Id$
+#
+#  COPYRIGHT (c) 2011.
+#  On-Line Applications Research Corporation (OAR).
+#
+#  The license and distribution terms for this file may be
+#  found in the file LICENSE in this distribution or at
+#  http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name:  sp76
+
+directives:
+  + rtems_task_wake_after - yield case when non-preemptive
+
+concepts:
+
++ This test is specifically designed to exercise the yield case when
+  a task is non-preemptive, a higher priority task is ready, and there
+  are multiple threads ready at the same priority as the non-preemptive
+  task.
+
++ test where there is more than one thread at a priority with the executing thread being non-preemptive. Create a higher priority thread and then yield. sparc init task at priority 2, non-preemptive create task at priority 2 create task at priority 1 yield<span style="background-color: #FF0000"> </span>
</font>
<font color='#006600'>diff -u /dev/null rtems/testsuites/sptests/sp76/sp76.scn:1.1
--- /dev/null   Thu Jul 28 16:10:16 2011
+++ rtems/testsuites/sptests/sp76/sp76.scn      Thu Jul 28 16:06:43 2011
</font><font color='#997700'>@@ -0,0 +1,9 @@
</font><font color='#000088'>+<span style="background-color: #FF0000"><CR></span>
+<span style="background-color: #FF0000"><CR></span>
+*** SP76 (YIELD) TEST ***<span style="background-color: #FF0000"><CR></span>
+Set Init task priority = 2<span style="background-color: #FF0000"><CR></span>
+Create TA1 at higher priority task<span style="background-color: #FF0000"><CR></span>
+Create TA2 at equal priority task<span style="background-color: #FF0000"><CR></span>
+Yield to TA1<span style="background-color: #FF0000"><CR></span>
+TA1  - Successfully yielded it to higher priority task<span style="background-color: #FF0000"><CR></span>
+*** END OF SP76 TEST ***<span style="background-color: #FF0000"><CR></span>
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>