Changeset b61bb4f in rtems


Ignore:
Timestamp:
Aug 4, 2011, 2:42:05 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
21889ea
Parents:
d7314783
Message:

2011-08-04 Joel Sherrill <joel.sherrill@…>

  • psxtmrwlock03/init.c: Fix abstime issue. Time is now reasonable.
Location:
testsuites/psxtmtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtmtests/ChangeLog

    rd7314783 rb61bb4f  
     12011-08-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxtmrwlock03/init.c: Fix abstime issue. Time is now reasonable.
     4
    152011-08-02      Ricardo Aguirre <el.mastin@ymail.com>
    26
  • testsuites/psxtmtests/psxtmrwlock03/init.c

    rd7314783 rb61bb4f  
    2323
    2424pthread_rwlock_t     rwlock;
     25struct timespec      abstime;
    2526
    2627void *Low(
     
    5960{
    6061  int status;
    61   struct timespec      abstime;
    62 
    63   abstime.tv_sec = 0;
    64   abstime.tv_nsec = 0;
    6562
    6663  /*
     
    7572   * cause a write operation has the lock */
    7673    status = pthread_rwlock_timedrdlock(&rwlock, &abstime);
    77   /*status should be non zero, cause read lock is refused...
    78    * blocked during abstime */
    79   rtems_test_assert( status == ETIMEDOUT );
     74  rtems_test_assert( status == 0 );
    8075  return NULL;
    8176}
     
    9994  status = pthread_create( &threadId, NULL, Low, NULL );
    10095  rtems_test_assert( !status );
     96
     97  /*
     98   *  Timeout for 5 seconds from now.
     99   */
     100  status = clock_gettime( CLOCK_REALTIME, &abstime );
     101  rtems_test_assert( !status );
     102  abstime.tv_sec += 5;
    101103
    102104  /*
Note: See TracChangeset for help on using the changeset viewer.