<!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-06-22)</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>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-06-22 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * malloctest/init.c: Added error case with malloc of size 0.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/ChangeLog.diff?r1=text&tr1=1.181&r2=text&tr2=1.182&diff_format=h">M</a></td><td width='1%'>1.182</td><td width='100%'>testsuites/libtests/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/testsuites/libtests/malloctest/init.c.diff?r1=text&tr1=1.38&r2=text&tr2=1.39&diff_format=h">M</a></td><td width='1%'>1.39</td><td width='100%'>testsuites/libtests/malloctest/init.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/testsuites/libtests/ChangeLog:1.181 rtems/testsuites/libtests/ChangeLog:1.182
--- rtems/testsuites/libtests/ChangeLog:1.181   Tue Jun 22 13:09:04 2010
+++ rtems/testsuites/libtests/ChangeLog Tue Jun 22 13:20:46 2010
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2010-06-22        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
<font color='#000088'>+   * malloctest/init.c: Added error case with malloc of size 0.
+
+2010-06-22     Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
</font>   * malloctest/init.c: Added test to check failure branch on calloc.
 
 2010-06-21     Joel Sherrill <joel.sherrill@oarcorp.com>

<font color='#006600'>diff -u rtems/testsuites/libtests/malloctest/init.c:1.38 rtems/testsuites/libtests/malloctest/init.c:1.39
--- rtems/testsuites/libtests/malloctest/init.c:1.38    Tue Jun 22 13:09:04 2010
+++ rtems/testsuites/libtests/malloctest/init.c Tue Jun 22 13:20:47 2010
</font><font color='#997700'>@@ -1086,12 +1086,26 @@
</font>   status = rtems_clock_set( &time );
   directive_failed( status, "rtems_clock_set" );
 
<font color='#000088'>+  /*
+   * Verify case where block is too large to calloc.
+   */
</font>   p1 = calloc( 1, SIZE_MAX );
   if (p1) {
     printf("ERROR on attempt to calloc SIZE_MAX block expected failure.");
     free( p1 );
   }
 
<font color='#000088'>+  /*
+   * Verify error case where malloc of size 0.
+   */
+  p1 = malloc( 0 );
+  if (p1) {
+    printf("ERROR on attempt to malloc size 0 block expected failure.");
+    free( p1 );
+  }
+
+
+
</font>   test_heap_initialize();
   test_heap_block_allocate();
   test_heap_allocate();
</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>