<!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 (2010-07-27)</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>2010-07-27 Joel Sherrill <joel.sherrill@oarcorp.com>

        * psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add
        test for runnign out of workspace when setting object name as string.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/ChangeLog.diff?r1=text&tr1=1.298&r2=text&tr2=1.299&diff_format=h">M</a></td><td width='1%'>1.299</td><td width='100%'>testsuites/psxtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxobj01/Makefile.am.diff?r1=text&tr1=1.3&r2=text&tr2=1.4&diff_format=h">M</a></td><td width='1%'>1.4</td><td width='100%'>testsuites/psxtests/psxobj01/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxobj01/init.c.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/psxtests/psxobj01/init.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/psxtests/psxobj01/psxobj01.scn.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/psxtests/psxobj01/psxobj01.scn</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/psxtests/ChangeLog:1.298 rtems/testsuites/psxtests/ChangeLog:1.299
--- rtems/testsuites/psxtests/ChangeLog:1.298   Tue Jul 27 11:38:07 2010
+++ rtems/testsuites/psxtests/ChangeLog Tue Jul 27 15:16:23 2010
</font><font color='#997700'>@@ -1,3 +1,8 @@
</font><font color='#000088'>+2010-07-27    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       * psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add
+       test for runnign out of workspace when setting object name as string.
+
</font> 2010-07-27        Vinu Rajashekhar <vinutheraj@gmail.com>
 
        PR 1629/cpukit

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxobj01/Makefile.am:1.3 rtems/testsuites/psxtests/psxobj01/Makefile.am:1.4
--- rtems/testsuites/psxtests/psxobj01/Makefile.am:1.3  Wed Jun 23 17:49:58 2010
+++ rtems/testsuites/psxtests/psxobj01/Makefile.am      Tue Jul 27 15:16:23 2010
</font><font color='#997700'>@@ -5,7 +5,7 @@
</font> MANAGERS = all
 
 rtems_tests_PROGRAMS = psxobj01
<font color='#880000'>-psxobj01_SOURCES = init.c
</font><font color='#000088'>+psxobj01_SOURCES = init.c ../../support/src/test_support.c
</font> 
 dist_rtems_tests_DATA = psxobj01.scn
 dist_rtems_tests_DATA += psxobj01.doc

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxobj01/init.c:1.1 rtems/testsuites/psxtests/psxobj01/init.c:1.2
--- rtems/testsuites/psxtests/psxobj01/init.c:1.1       Fri Jun 12 10:17:49 2009
+++ rtems/testsuites/psxtests/psxobj01/init.c   Tue Jul 27 15:16:23 2010
</font><font color='#997700'>@@ -12,6 +12,7 @@
</font> 
 #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
 #include <tmacros.h>
<font color='#000088'>+#include "test_support.h"
</font> 
 rtems_task Init(
   rtems_task_argument ignored
<font color='#997700'>@@ -21,6 +22,7 @@
</font>   Objects_Information              TestClass;
   Objects_Id                       id;
   char                             name[64];
<font color='#000088'>+  bool                             bc;
</font> 
   puts( "\n\n*** POSIX OBJECT TEST 1 ***" );
 
<font color='#997700'>@@ -62,6 +64,13 @@
</font>     rtems_test_exit(0);
   }
 
<font color='#000088'>+  /* out of memory error ONLY when POSIX is enabled */
+  puts( "INIT - _Objects_Set_name fails - out of memory" );
+  Allocate_majority_of_workspace( 1 );
+
+  bc = _Objects_Set_name( &TestClass, &_Thread_Executing->Object, name );
+  rtems_test_assert( bc == false );
+
</font>   puts( "*** END OF POSIX OBJECT TEST 1 ***" );
   rtems_test_exit(0);
 }

<font color='#006600'>diff -u rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.1 rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.2
--- rtems/testsuites/psxtests/psxobj01/psxobj01.scn:1.1 Fri Jun 12 10:17:49 2009
+++ rtems/testsuites/psxtests/psxobj01/psxobj01.scn     Tue Jul 27 15:16:23 2010
</font><font color='#997700'>@@ -2,4 +2,6 @@
</font> INIT - _Objects_Name_to_id_string - NULL name
 INIT - _Objects_Name_to_id_string - NULL ID
 INIT - _Objects_Name_to_id_string - name of non-existent object
<font color='#000088'>+INIT - _Objects_Set_name fails - out of memory
+Allocate_majority_of_workspace:<span style="background-color: #FF0000"> </span>
</font> *** END OF POSIX OBJECT TEST 1 ***
</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>