summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests
diff options
context:
space:
mode:
authorAlexander Krutwig <alexander.krutwig@embedded-brains.de>2015-03-31 15:14:28 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-31 15:16:43 +0200
commit2da28d2bee8640eb5563ca4f086117a8ac300093 (patch)
tree49663bbcf496d78fef9acda6ffad4bd5c4370001 /testsuites/psxtmtests
parentfstests: Increase stack size for symlink loop test (diff)
downloadrtems-2da28d2bee8640eb5563ca4f086117a8ac300093.tar.bz2
psxtmtests: Use timeout in more distant future
Adds future compatibility with strict monontonic software timestamps.
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 );