Changeset be4e3d6f in rtems


Ignore:
Timestamp:
Jul 15, 2010, 1:36:25 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
c275f71
Parents:
d0ef58a
Message:

2010-07-15 Sebastian Huber <sebastian.huber@…>

  • malloctest/init.c: Added test for rtems_heap_allocate_aligned_with_boundary().
Location:
testsuites/libtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    rd0ef58a rbe4e3d6f  
     12010-07-15      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * malloctest/init.c: Added test for
     4        rtems_heap_allocate_aligned_with_boundary().
     5
    162010-07-14      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/malloctest/init.c

    rd0ef58a rbe4e3d6f  
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
    17  *  Copyright (c) 2009 embedded brains GmbH.
     17 *  Copyright (c) 2009, 2010 embedded brains GmbH.
    1818 *
    1919 *  The license and distribution terms for this file may be
     
    10241024}
    10251025
     1026static void test_rtems_heap_allocate_aligned_with_boundary(void)
     1027{
     1028  void *p = NULL;
     1029
     1030  p = rtems_heap_allocate_aligned_with_boundary(1, 1, 1);
     1031  rtems_test_assert( p != NULL );
     1032  free(p);
     1033
     1034  _Thread_Disable_dispatch();
     1035  p = rtems_heap_allocate_aligned_with_boundary(1, 1, 1);
     1036  _Thread_Enable_dispatch();
     1037  rtems_test_assert( p == NULL );
     1038}
     1039
    10261040/*
    10271041 *  A simple test of posix_memalign
     
    11091123  test_heap_info();
    11101124  test_protected_heap_info();
     1125  test_rtems_heap_allocate_aligned_with_boundary();
    11111126
    11121127  test_posix_memalign();
Note: See TracChangeset for help on using the changeset viewer.