summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtmtests/psxtmcond08/init.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-11 13:58:33 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-04-11 13:58:33 +0200
commit7b369afba9fecbf8a87a42375376d4ca8af7560c (patch)
tree5633949494ff207b4e7835ba6ab51164af66bf6f /testsuites/psxtmtests/psxtmcond08/init.c
parentsapi: Fix unified workspace option (diff)
downloadrtems-7b369afba9fecbf8a87a42375376d4ca8af7560c.tar.bz2
testsuites: Fix warnings
Diffstat (limited to 'testsuites/psxtmtests/psxtmcond08/init.c')
-rw-r--r--testsuites/psxtmtests/psxtmcond08/init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuites/psxtmtests/psxtmcond08/init.c b/testsuites/psxtmtests/psxtmcond08/init.c
index af970361b3..fe1fee7d84 100644
--- a/testsuites/psxtmtests/psxtmcond08/init.c
+++ b/testsuites/psxtmtests/psxtmcond08/init.c
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <time.h>
#include <errno.h>
+#include <sched.h>
#include <timesys.h>
#include <tmacros.h>
#include <rtems/timerdrv.h>
@@ -88,16 +89,14 @@ void *Middle(
#elif defined(USE_TIMEDWAIT_WAIT_VALUE_IN_PAST)
{
- long end_time;
-
/* override sleepTime with something obviously in the past */
sleepTime.tv_sec = 0;
sleepTime.tv_nsec = 5;
/* this does all the work of timedwait but immediately returns */
rc = pthread_cond_timedwait( &CondID, &MutexID, &sleepTime );
- end_time = benchmark_timer_read();
rtems_test_assert(rc == ETIMEDOUT);
+ benchmark_timer_read();
}
#endif