This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 10ef775932c40eaa18aa171b43d2c77450d93e43 (commit) from f960d6c1cdf7c20a15e0227fe54de099acff13e5 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/10ef775932c40eaa18aa171b43d2c77450d93...
commit 10ef775932c40eaa18aa171b43d2c77450d93e43 Author: Cyril Hrubis metan@ucw.cz Date: Tue Dec 17 13:03:03 2013 +0100
tests: input: Fix and enable TimeStamp tests.
Signed-off-by: Cyril Hrubis metan@ucw.cz
diff --git a/tests/input/TimeStamp.c b/tests/input/TimeStamp.c index 5ab2dc2..157ed5d 100644 --- a/tests/input/TimeStamp.c +++ b/tests/input/TimeStamp.c @@ -27,6 +27,7 @@ */
#include <stdlib.h> +#include <unistd.h> #include <input/GP_TimeStamp.h>
#include "tst_test.h" @@ -35,9 +36,11 @@
static int time_stamp_monotonicity(void) { - uint64_t ts = 0, nts; + uint64_t ts = 0, nts, fts; int i, fail = 0;
+ fts = GP_GetTimeStamp(); + for (i = 0; i < MAX; i++) { nts = GP_GetTimeStamp(); if (nts < ts) { @@ -46,8 +49,11 @@ static int time_stamp_monotonicity(void) (long long unsigned) ts); fail++; } + usleep(10); }
+ tst_msg("Difference %llu", (long long unsigned)(nts - fts)); + if (fail) return TST_FAILED;
diff --git a/tests/input/test_list.txt b/tests/input/test_list.txt index 777c39b..f3fac95 100644 --- a/tests/input/test_list.txt +++ b/tests/input/test_list.txt @@ -1,3 +1,4 @@ # Input test list
Timer +TimeStamp
-----------------------------------------------------------------------
Summary of changes: tests/input/TimeStamp.c | 8 +++++++- tests/input/test_list.txt | 1 + 2 files changed, 8 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.