Changeset c0694b0 in rtems


Ignore:
Timestamp:
Aug 4, 2008, 2:39:37 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.8
Children:
bdfdb0b
Parents:
7f46d43d
Message:

2008-08-04 Tim FitzGeorge? <tim.fitzgeorge@…>

PR 1293/tests

  • psx10/init.c: Make sure we do not let tv_nsec go to -1.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r7f46d43d rc0694b0  
     12008-08-04      Tim FitzGeorge <tim.fitzgeorge@astrium.eads.net>
     2
     3        PR 1293/tests
     4        * psx10/init.c: Make sure we do not let tv_nsec go to -1.
     5
    162008-07-22      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • testsuites/psxtests/psx10/init.c

    r7f46d43d rc0694b0  
    248248  status = pthread_mutex_lock( &Mutex_id );
    249249  assert( !status );
    250   status = clock_gettime( CLOCK_REALTIME, &timeout );
    251   assert( !status );
    252   timeout.tv_nsec -= 1;
     250
     251  /* ensure we do not catch a 0 nanosecond boundary */
     252  do {
     253    status = clock_gettime( CLOCK_REALTIME, &timeout );
     254    assert( !status );
     255    timeout.tv_nsec -= 1;
     256  } while ( timeout.tv_nsec < 0);
     257
    253258  status = pthread_cond_timedwait( &Cond1_id, &Mutex_id, &timeout );
    254259  if ( status != ETIMEDOUT )
Note: See TracChangeset for help on using the changeset viewer.