summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtmtests')
-rw-r--r--testsuites/psxtmtests/psxtmcond08/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtmtests/psxtmcond08/init.c b/testsuites/psxtmtests/psxtmcond08/init.c
index 8af9f9dbfc..2224f230ba 100644
--- a/testsuites/psxtmtests/psxtmcond08/init.c
+++ b/testsuites/psxtmtests/psxtmcond08/init.c
@@ -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 );