psxtmtests: Use timeout in more distant future

Adds future compatibility with strict monontonic software timestamps.
This commit is contained in:
Alexander Krutwig
2015-03-31 15:14:28 +02:00
committed by Sebastian Huber
parent 15031660b8
commit 2da28d2bee

View File

@@ -85,7 +85,9 @@ void *Middle(
rtems_test_assert( rc == 0 );
#elif defined(USE_TIMEDWAIT_WITH_VALUE)
/* adjust sleepTime to get something obviously in the future */
++sleepTime.tv_sec;
rc = pthread_cond_timedwait( &CondID, &MutexID, &sleepTime );
rtems_test_assert( rc == 0 );
@@ -133,7 +135,6 @@ void *POSIX_Init(
/* Convert from timeval to timespec */
sleepTime.tv_sec = tp.tv_sec;
sleepTime.tv_nsec = tp.tv_usec * 1000;
sleepTime.tv_nsec += 1;
rc = pthread_cond_init(&CondID, NULL);
rtems_test_assert( rc == 0 );