summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2017-07-14 17:17:15 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-14 17:24:45 +0200
commit1c8c85e3866b1a6b35baafd3482ff7ef494a0f24 (patch)
treeb4c9022a5d7f1dc4f5852d2c8626ce3d3e65b941 /vcl/qa
parentbdbebda1d80f538f946b14042a366029f90d4820 (diff)
Fix instant 0ms scheduler wakeup for headless
This is a regression from commit 503eba23c9a199583eddee9e169a4fddbecf416f Due to rounding errors, as the Scheduler uses milliseconds, but the headless backend uses nanoseconds the StartTimer assumed it would wake up this ms, but the headless check function would still wait. This is more of a workaround, so instant wakeup for the headless backend works again. Change-Id: I2ba9b4ad2b67ec99eeb4dd098ded6457d3753127
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/timer.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index eface298c865..c1f14ced5c38 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -413,8 +413,8 @@ void TimerTest::testTriggerIdleFromIdle()
TriggerIdleFromIdle aTest1( &bTriggered1, &aTest2 );
aTest1.Start();
Application::Yield();
- CPPUNIT_ASSERT_MESSAGE("idle triggered", bTriggered1);
- CPPUNIT_ASSERT_MESSAGE("idle triggered", bTriggered2);
+ CPPUNIT_ASSERT_MESSAGE("idle not triggered", bTriggered1);
+ CPPUNIT_ASSERT_MESSAGE("idle not triggered", bTriggered2);
}