Changeset 42d57c7 in rtems


Ignore:
Timestamp:
Jul 28, 2009, 1:44:58 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
5d8b8eb
Parents:
33692dd
Message:

2009-07-28 Santosh G Vattam <vattam.santosh@…>

  • psx05/init.c, psx05/psx05.scn: Add test for pthread_mutex_timedlock with timeout in the past.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r33692dd r42d57c7  
     12009-07-28      Santosh G Vattam <vattam.santosh@gmail.com>
     2
     3        * psx05/init.c, psx05/psx05.scn: Add test for pthread_mutex_timedlock
     4        with timeout in the past.
     5
    162009-07-24      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/psxtests/psx05/init.c

    r33692dd r42d57c7  
    416416  assert( status == ETIMEDOUT );
    417417
     418  puts( "Init: pthread_mutex_timedlock - time out in the past" );
     419  calculate_abstimeout( &times, -1, (TOD_NANOSECONDS_PER_SECOND / 2) );
     420
     421  status = pthread_mutex_timedlock( &Mutex_id, &times );
     422  if ( status != EBUSY )
     423    printf( "status = %d\n", status );
     424  assert( status == EBUSY );
     425
    418426     /* switch to idle */
    419427
     
    578586  priority = (priority == 254) ? 200 : 13;
    579587 
    580   printf( "Init: pthread_mutex_setprioceiling - new ceiling = %d", priority );
     588  printf( "Init: pthread_mutex_setprioceiling - new ceiling = %d\n", priority );
    581589  status = pthread_mutex_setprioceiling( &Mutex2_id, priority, &old_ceiling );
    582590  assert( !status );
  • testsuites/psxtests/psx05/psx05.scn

    r33692dd r42d57c7  
    6060Task: mutex acquired
    6161Task: sleep for 2 seconds
     62Init: pthread_mutex_timedlock - time out in the past
    6263Init: pthread_mutex_timedlock - EAGAIN (timeout)
    6364
Note: See TracChangeset for help on using the changeset viewer.