Changeset 6f27ba8 in rtems


Ignore:
Timestamp:
May 5, 2011, 4:45:47 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
ff7ff62
Parents:
7c1e6942
Message:

2011-05-05 Joel Sherrill <joel.sherrill@…>

  • devnullfatal01/testcase.h, malloc02/init.c, malloc04/init.c, malloctest/init.c, termios03/termios_testdriver_polled.c, termios04/termios_testdriver_intr.c: Remove warnings.
Location:
testsuites/libtests
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r7c1e6942 r6f27ba8  
     12011-05-05      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * devnullfatal01/testcase.h, malloc02/init.c, malloc04/init.c,
     4        malloctest/init.c, termios03/termios_testdriver_polled.c,
     5        termios04/termios_testdriver_intr.c: Remove warnings.
     6
    172011-04-05      Sebastian Huber <sebastian.huber@embedded-brains.de>
    28
  • testsuites/libtests/devnullfatal01/testcase.h

    r7c1e6942 r6f27ba8  
    1717
    1818#include <rtems/devnull.h>
     19#include "tmacros.h"
    1920
    2021void force_error()
     
    2324
    2425  status = rtems_io_register_name( "/dev/null", 0, 0 );
     26  directive_failed( status, "io register" );
    2527
    2628  status = null_initialize( 0, 0, NULL );
  • testsuites/libtests/malloc02/init.c

    r7c1e6942 r6f27ba8  
    7070  puts( "Now malloc'ing more memory to process the free" );
    7171  pointer2 = malloc(20);
     72  rtems_test_assert( pointer2 );
    7273
    7374  puts( "*** END OF TEST MALLOC 02 ***" );
  • testsuites/libtests/malloc04/init.c

    r7c1e6942 r6f27ba8  
    11/*
    2  *  COPYRIGHT (c) 1989-2010.
     2 *  COPYRIGHT (c) 1989-2011.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    112112  RTEMS_Malloc_Initialize( NULL, 0, 64 );
    113113  p1 = malloc(64);
     114  rtems_test_assert( p1 );
     115
    114116  p2 = malloc(64);
     117  rtems_test_assert( p2 );
     118
    115119  p3 = malloc(48);
     120  rtems_test_assert( p3 );
     121
    116122  p4 = malloc(48);
     123  rtems_test_assert( p4 );
    117124 
    118125  puts( "Initialize heap with no memory (sbrk aligned)" );
     
    121128  RTEMS_Malloc_Initialize( NULL, 0, 64 );
    122129  p1 = malloc(64);
     130  rtems_test_assert( p1 );
    123131 
    124132  puts( "Set sbrk amount in heap to 0" );
     
    128136  RTEMS_Malloc_Sbrk_amount = 0;
    129137  p4 = malloc(48);
     138  rtems_test_assert( p4 );
    130139
    131140  /* Restore information on real heap */
  • testsuites/libtests/malloctest/init.c

    r7c1e6942 r6f27ba8  
    1212 *  Output parameters:  NONE
    1313 *
    14  *  COPYRIGHT (c) 1989-2009.
     14 *  COPYRIGHT (c) 1989-2011.
    1515 *  On-Line Applications Research Corporation (OAR).
    1616 *
     
    421421  uintptr_t previous_last_page_begin = 0;
    422422
    423   uintptr_t first_block_begin = 0;
    424 
    425423  uintptr_t last_block_begin = 0;
    426424  uintptr_t last_alloc_begin = 0;
    427425
    428426  test_heap_init( TEST_DEFAULT_PAGE_SIZE );
    429 
    430   first_block_begin = (uintptr_t) TestHeap.first_block;
    431427
    432428  last_block_begin = (uintptr_t) TestHeap.last_block;
     
    468464  p1 = test_init_and_alloc_simple( alloc_size, alignment, boundary );
    469465  p2 = test_alloc_simple( alloc_size, alignment, boundary );
     466  rtems_test_assert( p2 );
     467
    470468  test_free( p1 );
    471469
     
    891889  test_heap_init( TEST_DEFAULT_PAGE_SIZE );
    892890  p1 = test_alloc_one_page();
     891  rtems_test_assert( p1 );
     892
    893893  p2 = test_alloc_one_page();
     894  rtems_test_assert( p2 );
     895
    894896  new_alloc_size = 3 * TEST_DEFAULT_PAGE_SIZE / 2;
    895897  test_simple_resize_block( p1, new_alloc_size, HEAP_RESIZE_UNSATISFIED );
     
    904906  test_heap_init( TEST_DEFAULT_PAGE_SIZE );
    905907  p1 = test_alloc_one_page();
     908  rtems_test_assert( p1 );
     909
    906910  p2 = test_alloc_one_page();
     911  rtems_test_assert( p2 );
     912
    907913  p3 = test_alloc_one_page();
     914  rtems_test_assert( p3 );
     915
    908916  _Heap_Free( &TestHeap, p2 );
    909917  new_alloc_size = 5 * TEST_DEFAULT_PAGE_SIZE / 2;
  • testsuites/libtests/termios03/termios_testdriver_polled.c

    r7c1e6942 r6f27ba8  
    22 *  This file contains a test fixture termios device driver
    33 *
    4  *  COPYRIGHT (c) 1989-2010.
     4 *  COPYRIGHT (c) 1989-2011.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    135135
    136136  sc = rtems_termios_open (major, minor, arg, &Callbacks);
     137  directive_failed( sc, "termios open" );
    137138
    138139  return RTEMS_SUCCESSFUL;
  • testsuites/libtests/termios04/termios_testdriver_intr.c

    r7c1e6942 r6f27ba8  
    22 *  This file contains a test fixture termios device driver
    33 *
    4  *  COPYRIGHT (c) 1989-2010.
     4 *  COPYRIGHT (c) 1989-2011.
    55 *  On-Line Applications Research Corporation (OAR).
    66 *
     
    206206
    207207  sc = rtems_termios_open (major, minor, arg, &Callbacks);
     208  directive_failed( sc, "termios open" );
    208209
    209210  Ttyp = args->iop->data1;   /* Keep cookie returned by termios_open */
Note: See TracChangeset for help on using the changeset viewer.