Changeset 91e446f3 in rtems


Ignore:
Timestamp:
Jun 22, 2010, 6:20:47 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
71a3078
Parents:
81110848
Message:

2010-06-22 Jennifer Averett <Jennifer.Averett@…>

  • malloctest/init.c: Added error case with malloc of size 0.
Location:
testsuites/libtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r81110848 r91e446f3  
     12010-06-22      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * malloctest/init.c: Added error case with malloc of size 0.
     4
    152010-06-22      Jennifer Averett <Jennifer.Averett@OARcorp.com>
    26
  • testsuites/libtests/malloctest/init.c

    r81110848 r91e446f3  
    10871087  directive_failed( status, "rtems_clock_set" );
    10881088
     1089  /*
     1090   * Verify case where block is too large to calloc.
     1091   */
    10891092  p1 = calloc( 1, SIZE_MAX );
    10901093  if (p1) {
     
    10921095    free( p1 );
    10931096  }
     1097
     1098  /*
     1099   * Verify error case where malloc of size 0.
     1100   */
     1101  p1 = malloc( 0 );
     1102  if (p1) {
     1103    printf("ERROR on attempt to malloc size 0 block expected failure.");
     1104    free( p1 );
     1105  }
     1106
     1107
    10941108
    10951109  test_heap_initialize();
Note: See TracChangeset for help on using the changeset viewer.