Changeset 85e525a in rtems


Ignore:
Timestamp:
Jun 29, 2009, 11:23:23 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b4e5a619
Parents:
290d2b79
Message:

2009-06-29 Joel Sherrill <joel.sherrill@…>

  • psx05/init.c, psx05/psx05.scn: Add test case for process scope now that the assert has been removed in the source.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r290d2b79 r85e525a  
     12009-06-29      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psx05/init.c, psx05/psx05.scn: Add test case for process scope now
     4        that the assert has been removed in the source.
     5
    162009-06-18      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/psxtests/psx05/init.c

    r290d2b79 r85e525a  
    281281  assert( status == EINVAL );
    282282
     283  /* must get around various error checks before checking bad scope */
     284  puts( "Init: Resetting mutex attributes" );
     285  status = pthread_mutexattr_init( &attr );
     286  assert( !status );
     287
     288  puts( "Init: pthread_mutex_init - ENOSYS (process wide scope)" );
     289  attr.process_shared = PTHREAD_PROCESS_SHARED;
     290  status = pthread_mutex_init( &Mutex_id, &attr );
     291  assert( status == ENOSYS );
     292
     293  puts( "Init: pthread_mutex_init - EINVAL (invalid scope)" );
     294  attr.process_shared = -1;
     295  status = pthread_mutex_init( &Mutex_id, &attr );
     296  assert( status == EINVAL );
     297
    283298  /* now set up for a success pthread_mutex_init */
    284299
  • testsuites/psxtests/psx05/psx05.scn

    r290d2b79 r85e525a  
    3030Init: pthread_mutex_init - EINVAL (bad protocol)
    3131Init: pthread_mutex_init - EINVAL (bad priority ceiling)
     32Init: Resetting mutex attributes
     33Init: pthread_mutex_init - ENOSYS (process wide scope)
     34Init: pthread_mutex_init - EINVAL (invalid scope)
    3235Init: Resetting mutex attributes
    3336Init: Changing mutex attributes
Note: See TracChangeset for help on using the changeset viewer.