Changeset 824b3d1c in rtems


Ignore:
Timestamp:
Jul 6, 2009, 10:01:58 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
8860ecf2
Parents:
9847e4b4
Message:

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

  • psx05/init.c, psx05/psx05.scn: Add a couple of invalid Id cases.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r9847e4b4 r824b3d1c  
     12009-07-06      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * psx05/init.c, psx05/psx05.scn: Add a couple of invalid Id cases.
     4
    152009-07-06      Joel Sherrill <joel.sherrill@OARcorp.com>
    26
  • testsuites/psxtests/psx05/init.c

    r9847e4b4 r824b3d1c  
    366366  assert( status == EDEADLK );
    367367
     368  puts( "Init: pthread_mutex_lock - EINVAL (NULL id)" );
     369  status = pthread_mutex_lock( NULL );
     370  if ( status != EINVAL )
     371    printf( "status = %d\n", status );
     372  assert( status == EINVAL );
     373
     374  puts( "Init: pthread_mutex_unlock - EINVAL (NULL id)" );
     375  status = pthread_mutex_unlock( NULL );
     376  if ( status != EINVAL )
     377    printf( "status = %d\n", status );
     378  assert( status == EINVAL );
     379
    368380  puts( "Init: pthread_mutex_lock - EDEADLK (already locked)" );
    369381  status = pthread_mutex_lock( &Mutex_id );
  • testsuites/psxtests/psx05/psx05.scn

    r9847e4b4 r824b3d1c  
    99Init: pthread_mutexattr_destroy - EINVAL (NULL attr)
    1010Init: pthread_mutexattr_destroy - EINVAL (not initialized)
     11
    1112Init: pthread_mutexattr_getpshared - EINVAL (NULL attr)
    1213Init: pthread_mutexattr_getpshared - EINVAL (NULL pshared)
     
    1415Init: pthread_mutexattr_setpshared - EINVAL (NULL attr)
    1516Init: pthread_mutexattr_setpshared - EINVAL (not initialized)
     17
    1618Init: pthread_mutexattr_getprotocol - EINVAL (NULL attr)
    1719Init: pthread_mutexattr_getprotocol - EINVAL (NULL protocol)
     
    2022Init: pthread_mutexattr_setprotocol - EINVAL (invalid protocol)
    2123Init: pthread_mutexattr_setprotocol - EINVAL (not initialized)
     24
    2225Init: pthread_mutexattr_getprioceiling - EINVAL (NULL attr)
    2326Init: pthread_mutexattr_getprioceiling - EINVAL (NULL prioceiling)
     
    2629Init: pthread_mutexattr_setprioceiling - EINVAL (invalid priority)
    2730Init: pthread_mutexattr_setprioceiling - EINVAL (not initialized)
     31
    2832Init: pthread_mutex_init - EINVAL (NULL mutex_id)
    2933Init: pthread_mutex_init - EINVAL (not initialized attr)
     
    4448Init: pthread_mutex_trylock - SUCCESSFUL
    4549Init: pthread_mutex_trylock - EDEADLK (already locked)
     50Init: pthread_mutex_lock - EINVAL (NULL id)
     51Init: pthread_mutex_unlock - EINVAL (NULL id)
    4652Init: pthread_mutex_lock - EDEADLK (already locked)
    4753Init: Sleep 1 second
     
    5561Task: sleep for 2 seconds
    5662Init: pthread_mutex_timedlock - EAGAIN (timeout)
     63
    5764Init: pthread_mutex_init - SUCCESSFUL
    5865Init: pthread_mutex_init - EAGAIN (too many)
     
    6067Init: pthread_mutex_destroy - SUCCESSFUL
    6168Init: pthread_mutex_destroy - EINVAL (invalid id)
     69
    6270Init: pthread_mutexattr_init - SUCCESSFUL
    6371Init: pthread_mutex_init - SUCCESSFUL
     
    6674Init: pthread_mutex_unlock - SUCCESSFUL
    6775Init: pthread_mutex_destroy - SUCCESSFUL
     76
    6877Init: pthread_mutexattr_init - SUCCESSFUL
    6978Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_INHERIT)
     
    7988Init: pthread_mutexattr_destroy - SUCCESSFUL
    8089Init: pthread_mutex_destroy - SUCCESSFUL
     90
    8191Init: pthread_mutexattr_init - SUCCESSFUL
    8292Init: pthread_mutexattr_setprotocol - SUCCESSFUL (PTHREAD_PRIO_PROTECT)
Note: See TracChangeset for help on using the changeset viewer.