summaryrefslogtreecommitdiffstats
path: root/tests/global
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2020-02-24 17:23:57 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2020-03-06 17:40:11 +0100
commitaa5911d34d165fa7b1a2575c88b4c16dc8a805ac (patch)
treef0acfba5c6690ee4dc643c4fa7c9d1689cacd8e8 /tests/global
parent8c8f4c8c48b9ff22aeb6067d5d42d94e8e00c623 (diff)
Make QDeadlineTimer test more resilient against VM starvation
Flaky fails in this test suggest that the VM on which the test is executed does not get CPU resources allocated for enough time to make this test pass. This change makes the test more resilient by taking the measurements as quickly as possible. In addition, use a sanity-check based on std::chrono APIs to abort the test completely if we see that the clock has advanced too far to make the following tests meaningful. Change-Id: Ie6ac4ffb52f20e7774014f8222c9cd8f54d8a263 Fixes: QTBUG-64517 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 8b9a02537300507d21d58ac7d3db4fe1a2f2fe62)
Diffstat (limited to 'tests/global')
0 files changed, 0 insertions, 0 deletions