Changeset 2da28d2 in rtems


Ignore:
Timestamp:
Mar 31, 2015, 1:14:28 PM (5 years ago)
Author:
Alexander Krutwig <alexander.krutwig@…>
Branches:
4.11, master
Children:
7824d15
Parents:
15031660
git-author:
Alexander Krutwig <alexander.krutwig@…> (03/31/15 13:14:28)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/31/15 13:16:43)
Message:

psxtmtests: Use timeout in more distant future

Adds future compatibility with strict monontonic software timestamps.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtmtests/psxtmcond08/init.c

    r15031660 r2da28d2  
    8686
    8787  #elif defined(USE_TIMEDWAIT_WITH_VALUE)
    88    
     88    /* adjust sleepTime to get something obviously in the future */
     89    ++sleepTime.tv_sec;
     90
    8991    rc = pthread_cond_timedwait( &CondID, &MutexID, &sleepTime );
    9092    rtems_test_assert( rc == 0 );
     
    134136  sleepTime.tv_sec  = tp.tv_sec;
    135137  sleepTime.tv_nsec = tp.tv_usec * 1000;
    136   sleepTime.tv_nsec += 1;
    137138
    138139  rc = pthread_cond_init(&CondID, NULL);
Note: See TracChangeset for help on using the changeset viewer.