Changeset f188769 in rtems


Ignore:
Timestamp:
Oct 12, 2009, 12:07:16 AM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
4349a40
Parents:
a3a9a2d
Message:

2009-10-11 Joel Sherrill <joel.sherrill@…>

  • psx05/init.c, psx05/psx05.scn: Add test for bad mutex type.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    ra3a9a2d rf188769  
     12009-10-11      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psx05/init.c, psx05/psx05.scn: Add test for bad mutex type.
     4
    152009-10-11      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/psxtests/psx05/init.c

    ra3a9a2d rf188769  
    296296  assert( status == EINVAL );
    297297
     298  /* bad kind */
     299  status = pthread_mutexattr_init( &attr );
     300  assert( !status );
     301
     302  puts( "Init: pthread_mutex_init - EINVAL (invalid type)" );
     303  attr.type = -1;
     304  status = pthread_mutex_init( &Mutex_id, &attr );
     305  assert( status == EINVAL );
     306
    298307  /* now set up for a success pthread_mutex_init */
    299308
  • testsuites/psxtests/psx05/psx05.scn

    ra3a9a2d rf188769  
    3737Init: pthread_mutex_init - ENOSYS (process wide scope)
    3838Init: pthread_mutex_init - EINVAL (invalid scope)
     39Init: pthread_mutex_init - EINVAL (invalid type)
    3940Init: Resetting mutex attributes
    4041Init: Changing mutex attributes
Note: See TracChangeset for help on using the changeset viewer.