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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.