Changeset 81110848 in rtems


Ignore:
Timestamp:
Jun 22, 2010, 6:09:04 PM (10 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.11, master
Children:
91e446f3
Parents:
34c062f
Message:

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

  • malloctest/init.c: Added test to check failure branch on calloc.
Location:
testsuites/libtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r34c062f r81110848  
     12010-06-22      Jennifer Averett <Jennifer.Averett@OARcorp.com>
     2
     3        * malloctest/init.c: Added test to check failure branch on calloc.
     4
    152010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/libtests/malloctest/init.c

    r34c062f r81110848  
    10771077)
    10781078{
     1079  void             *p1;
    10791080  rtems_time_of_day time;
    10801081  rtems_status_code status;
     
    10851086  status = rtems_clock_set( &time );
    10861087  directive_failed( status, "rtems_clock_set" );
     1088
     1089  p1 = calloc( 1, SIZE_MAX );
     1090  if (p1) {
     1091    printf("ERROR on attempt to calloc SIZE_MAX block expected failure.");
     1092    free( p1 );
     1093  }
    10871094
    10881095  test_heap_initialize();
Note: See TracChangeset for help on using the changeset viewer.