<!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-11-26)</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>gedare</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-26 Gedare Bloom <gedare@rtems.org>

        PR 1964
        * spchain/init.c, spchain/spchain.scn: Add testcases for chain is first
        and last
</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.498&r2=text&tr2=1.499&diff_format=h">M</a></td><td width='1%'>1.499</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/spchain/init.c.diff?r1=text&tr1=1.11&r2=text&tr2=1.12&diff_format=h">M</a></td><td width='1%'>1.12</td><td width='100%'>testsuites/sptests/spchain/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/sptests/spchain/spchain.scn.diff?r1=text&tr1=1.4&r2=text&tr2=1.5&diff_format=h">M</a></td><td width='1%'>1.5</td><td width='100%'>testsuites/sptests/spchain/spchain.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/sptests/ChangeLog:1.498 rtems/testsuites/sptests/ChangeLog:1.499
--- rtems/testsuites/sptests/ChangeLog:1.498    Thu Nov 10 08:43:33 2011
+++ rtems/testsuites/sptests/ChangeLog  Sat Nov 26 12:07:33 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-11-26    Gedare Bloom <gedare@rtems.org>
+
+       PR 1964
+       * spchain/init.c, spchain/spchain.scn: Add testcases for chain is first
+       and last
+
</font> 2011-11-10        Sebastian Huber <sebastian.huber@embedded-brains.de>
 
        PR 1924/cpukit

<font color='#006600'>diff -u rtems/testsuites/sptests/spchain/init.c:1.11 rtems/testsuites/sptests/spchain/init.c:1.12
--- rtems/testsuites/sptests/spchain/init.c:1.11        Sun Jul 24 17:10:20 2011
+++ rtems/testsuites/sptests/spchain/init.c     Sat Nov 26 12:07:43 2011
</font><font color='#997700'>@@ -59,6 +59,25 @@
</font>   rtems_test_assert( p == NULL );
 }
 
<font color='#000088'>+static void test_chain_first_and_last(void)
+{
+  rtems_chain_control   chain;
+  rtems_chain_node      node1, node2;
+  rtems_chain_node     *cnode;
+
+  rtems_chain_initialize_empty( &chain );
+  rtems_chain_append( &chain, &node1 );
+  rtems_chain_insert( &node1, &node2 );
+
+  puts( "INIT - Verify rtems_chain_is_first" );
+  cnode = rtems_chain_first(&chain);<span style="background-color: #FF0000">  </span>
+  rtems_test_assert( rtems_chain_is_first( cnode ) );
+
+  puts( "INIT - Verify rtems_chain_is_last" );
+  cnode = rtems_chain_last(&chain);
+  rtems_test_assert( rtems_chain_is_last( cnode ) );
+}
+
</font> static void test_chain_with_notification(void)
 {
   rtems_status_code sc = RTEMS_SUCCESSFUL;
<font color='#997700'>@@ -214,6 +233,7 @@
</font>      }
   }
 
<font color='#000088'>+  test_chain_first_and_last();
</font>   test_chain_with_empty_check();
   test_chain_with_notification();
   test_chain_get_with_wait();

<font color='#006600'>diff -u rtems/testsuites/sptests/spchain/spchain.scn:1.4 rtems/testsuites/sptests/spchain/spchain.scn:1.5
--- rtems/testsuites/sptests/spchain/spchain.scn:1.4    Thu Nov 25 06:38:57 2010
+++ rtems/testsuites/sptests/spchain/spchain.scn        Sat Nov 26 12:07:52 2011
</font><font color='#997700'>@@ -1,6 +1,8 @@
</font> *** TEST OF RTEMS CHAIN API ***
 Init - Initialize chain empty
 INIT - Verify rtems_chain_insert
<font color='#000088'>+INIT - Verify rtems_chain_is_first
+INIT - Verify rtems_chain_is_last
</font> INIT - Verify rtems_chain_append_with_empty_check
 INIT - Verify rtems_chain_prepend_with_empty_check
 INIT - Verify rtems_chain_get_with_empty_check
</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>gedare</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-26 Gedare Bloom <gedare@rtems.org>

        PR 1964
        * score/inline/rtems/score/chain.inl: Fix chain is first and last.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2992&r2=text&tr2=1.2993&diff_format=h">M</a></td><td width='1%'>1.2993</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/inline/rtems/score/chain.inl.diff?r1=text&tr1=1.23&r2=text&tr2=1.24&diff_format=h">M</a></td><td width='1%'>1.24</td><td width='100%'>cpukit/score/inline/rtems/score/chain.inl</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2992 rtems/cpukit/ChangeLog:1.2993
--- rtems/cpukit/ChangeLog:1.2992       Fri Nov 18 14:04:39 2011
+++ rtems/cpukit/ChangeLog      Sat Nov 26 12:10:38 2011
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2011-11-26    Gedare Bloom <gedare@rtems.org>
+
+       PR 1964
+       * score/inline/rtems/score/chain.inl: Fix chain is first and last.
+
</font> 2011-11-18        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
        * sapi/include/confdefs.h: Added a bsp override option for

<font color='#006600'>diff -u rtems/cpukit/score/inline/rtems/score/chain.inl:1.23 rtems/cpukit/score/inline/rtems/score/chain.inl:1.24
--- rtems/cpukit/score/inline/rtems/score/chain.inl:1.23        Thu Nov 25 05:48:11 2010
+++ rtems/cpukit/score/inline/rtems/score/chain.inl     Sat Nov 26 12:10:39 2011
</font><font color='#997700'>@@ -297,7 +297,7 @@
</font>   const Chain_Node *the_node
 )
 {
<font color='#880000'>-  return (the_node->previous == NULL);
</font><font color='#000088'>+  return (the_node->previous->previous == NULL);
</font> }
 
 /** @brief Is this the Last Node on the Chain
<font color='#997700'>@@ -314,7 +314,7 @@
</font>   const Chain_Node *the_node
 )
 {
<font color='#880000'>-  return (the_node->next == NULL);
</font><font color='#000088'>+  return (the_node->next->next == NULL);
</font> }
 
 /** @brief Does this Chain have only One Node
</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>