Changeset c6dc6db in rtems


Ignore:
Timestamp:
Jul 4, 2009, 8:26:18 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
cf7267cf
Parents:
e660f86
Message:

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

  • psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for obtaining an rwlock and then releasing it twice.
Location:
testsuites/psxtests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    re660f86 rc6dc6db  
     12009-07-04      Santosh G Vattam <vattam.santosh@gmail.com>
     2
     3        * psxrwlock01/psxrwlock01.scn, psxrwlock01/test.c: Add test case for
     4        obtaining an rwlock and then releasing it twice.
     5
    162009-07-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/psxtests/psxrwlock01/psxrwlock01.scn

    re660f86 rc6dc6db  
    8080pthread_rwlock_timedwrlock( &RWLock, &abstime) -- in past -- OK
    8181pthread_rwlock_destroy( &RWLock ) -- OK
     82pthread_rwlock_init( &rwlock, NULL ) -- OK
     83pthread_rwlock_unlock ( &rwlock ) -- OK
     84pthread_rwlock_unlock ( &rwlock ) -- OK
    8285*** END OF POSIX RWLOCK TEST 01 ***
  • testsuites/psxtests/psxrwlock01/test.c

    re660f86 rc6dc6db  
    408408  assert( status == 0 );
    409409
     410  /*************** OBTAIN A LOCK AND THEN RELEASE IT TWICE ***************/
     411
     412  puts( "pthread_rwlock_init( &rwlock, NULL ) -- OK" );
     413  status = pthread_rwlock_init( &rwlock, NULL );
     414  assert( status == 0 );
     415  assert( rwlock != 0 );
     416
     417  puts( "pthread_rwlock_unlock ( &rwlock ) -- OK" );
     418  status = pthread_rwlock_unlock( &rwlock );
     419  assert( status == 0 );
     420 
     421  puts( "pthread_rwlock_unlock ( &rwlock ) -- OK" );
     422  status = pthread_rwlock_unlock( &rwlock );
     423  assert( status == 0 );
    410424
    411425  /*************** END OF TEST *****************/
Note: See TracChangeset for help on using the changeset viewer.