summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-10-31 08:24:25 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-31 08:28:09 +1000
commitadfa6b96ed8e609c7bdcc1fd8ec0831e47138e03 (patch)
treeae493db8eaf63e9abdb40b105b4c0bf90e36e62f
parent1db393686425591778ed89239ba024844d20ce73 (diff)
server/misc: reduce threshold for negative transition idle timer test
follow-up patch fixed this http://patchwork.freedesktop.org/patch/15061/ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--tests/server/misc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/misc.cpp b/tests/server/misc.cpp
index bae84b1..00086ee 100644
--- a/tests/server/misc.cpp
+++ b/tests/server/misc.cpp
@@ -478,8 +478,8 @@ TEST_F(IdletimerTest, NegativeTransition)
/* bug: if the negative transition threshold fires but the idletime is
below the threshold, it is never set up again */
- const int threshold = 1000;
- usleep(threshold * 1001);
+ const int threshold = 5;
+ usleep(threshold * 1200);
idlecounter = GetIdletimeCounter(dpy);
ASSERT_GT(idlecounter, (XSyncCounter)None);
@@ -488,7 +488,7 @@ TEST_F(IdletimerTest, NegativeTransition)
dev->PlayOne(EV_REL, REL_X, 10, true);
WaitForEvent(dpy);
- usleep(threshold * 1001);
+ usleep(threshold * 1200);
dev->PlayOne(EV_REL, REL_X, 10, true);
WaitForEvent(dpy);
@@ -523,7 +523,7 @@ TEST_F(IdletimerTest, NegativeTransitionMultipleAlarms)
/* bug: if the negative transition threshold fires but the idletime is
below the threshold, it is never set up again */
- const int threshold = 200;
+ const int threshold = 5;
usleep(threshold * 2000);
idlecounter = GetIdletimeCounter(dpy);