Changeset 9e2acee in rtems


Ignore:
Timestamp:
Mar 22, 2016, 7:24:45 AM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1a738ed
Parents:
865f110b
git-author:
Sebastian Huber <sebastian.huber@…> (03/22/16 07:24:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/22/16 07:29:09)
Message:

psxtests/psxobj01: Fix for RTEMS_DEBUG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxobj01/init.c

    r865f110b r9e2acee  
    5555  );
    5656
     57
    5758  puts( "INIT - _Objects_Get_by_name - NULL name" );
     59  _Objects_Allocator_lock();
    5860  the_object = _Objects_Get_by_name( &TestClass, NULL, NULL, &error );
     61  _Objects_Allocator_unlock();
    5962  rtems_test_assert( the_object == NULL );
    6063  rtems_test_assert( error == OBJECTS_GET_BY_NAME_INVALID_NAME );
     
    6265  puts( "INIT - _Objects_Get_by_name - name too long" );
    6366  strcpy( name, "TOOOOOOOOOOOOOOOOOO LONG" );
     67  _Objects_Allocator_lock();
    6468  the_object = _Objects_Get_by_name( &TestClass, name, NULL, &error );
     69  _Objects_Allocator_unlock();
    6570  rtems_test_assert( the_object == NULL );
    6671  rtems_test_assert( error == OBJECTS_GET_BY_NAME_NAME_TOO_LONG );
     
    6974  strcpy( name, "NOT FOUND" );
    7075  name_len = 123;
     76  _Objects_Allocator_lock();
    7177  the_object = _Objects_Get_by_name( &TestClass, name, &name_len, &error );
     78  _Objects_Allocator_unlock();
    7279  rtems_test_assert( the_object == NULL );
    7380  rtems_test_assert( error == OBJECTS_GET_BY_NAME_NO_OBJECT );
Note: See TracChangeset for help on using the changeset viewer.