change log for rtems (2010-06-22)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Jun 22 19:11:59 UTC 2010
*jennifer*:
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
* malloctest/init.c: Added error case with malloc of size 0.
M 1.182 testsuites/libtests/ChangeLog
M 1.39 testsuites/libtests/malloctest/init.c
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
@@ -1,5 +1,9 @@
2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+ * malloctest/init.c: Added error case with malloc of size 0.
+
+2010-06-22 Jennifer Averett <Jennifer.Averett at OARcorp.com>
+
* malloctest/init.c: Added test to check failure branch on calloc.
2010-06-21 Joel Sherrill <joel.sherrill at oarcorp.com>
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
@@ -1086,12 +1086,26 @@
status = rtems_clock_set( &time );
directive_failed( status, "rtems_clock_set" );
+ /*
+ * Verify case where block is too large to calloc.
+ */
p1 = calloc( 1, SIZE_MAX );
if (p1) {
printf("ERROR on attempt to calloc SIZE_MAX block expected failure.");
free( p1 );
}
+ /*
+ * 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 );
+ }
+
+
+
test_heap_initialize();
test_heap_block_allocate();
test_heap_allocate();
--
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/20100622/4fa0c9b7/attachment-0001.html>
More information about the vc
mailing list