Changeset c0d5778 in rtems


Ignore:
Timestamp:
Jul 27, 2010, 8:16:23 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5b50781
Parents:
cb0997e3
Message:

2010-07-27 Joel Sherrill <joel.sherrill@…>

  • psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add test for runnign out of workspace when setting object name as string.
Location:
testsuites/psxtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rcb0997e3 rc0d5778  
     12010-07-27      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxobj01/Makefile.am, psxobj01/init.c, psxobj01/psxobj01.scn: Add
     4        test for runnign out of workspace when setting object name as string.
     5
    162010-07-27      Vinu Rajashekhar <vinutheraj@gmail.com>
    27
  • testsuites/psxtests/psxobj01/Makefile.am

    rcb0997e3 rc0d5778  
    66
    77rtems_tests_PROGRAMS = psxobj01
    8 psxobj01_SOURCES = init.c
     8psxobj01_SOURCES = init.c ../../support/src/test_support.c
    99
    1010dist_rtems_tests_DATA = psxobj01.scn
  • testsuites/psxtests/psxobj01/init.c

    rcb0997e3 rc0d5778  
    1313#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
    1414#include <tmacros.h>
     15#include "test_support.h"
    1516
    1617rtems_task Init(
     
    2223  Objects_Id                       id;
    2324  char                             name[64];
     25  bool                             bc;
    2426
    2527  puts( "\n\n*** POSIX OBJECT TEST 1 ***" );
     
    6365  }
    6466
     67  /* out of memory error ONLY when POSIX is enabled */
     68  puts( "INIT - _Objects_Set_name fails - out of memory" );
     69  Allocate_majority_of_workspace( 1 );
     70
     71  bc = _Objects_Set_name( &TestClass, &_Thread_Executing->Object, name );
     72  rtems_test_assert( bc == false );
     73
    6574  puts( "*** END OF POSIX OBJECT TEST 1 ***" );
    6675  rtems_test_exit(0);
  • testsuites/psxtests/psxobj01/psxobj01.scn

    rcb0997e3 rc0d5778  
    33INIT - _Objects_Name_to_id_string - NULL ID
    44INIT - _Objects_Name_to_id_string - name of non-existent object
     5INIT - _Objects_Set_name fails - out of memory
     6Allocate_majority_of_workspace:
    57*** END OF POSIX OBJECT TEST 1 ***
Note: See TracChangeset for help on using the changeset viewer.