Make the QEXPECT_FAIL agree with the QVERIFY2 condition below
authorJan Arve Saether <jan-arve.saether@digia.com>
Thu, 23 Jan 2014 13:50:01 +0000 (14:50 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 24 Jan 2014 08:15:47 +0000 (09:15 +0100)
commitf7ca7ae50ef1e36a85dc3eb8541aaa8907176447
treed71b3dfc7475ca97e9c3dfdda460e3f4ee465cb4
parent73b54f85c543d7e6de4194c1e6c91aa9ce79902d
Make the QEXPECT_FAIL agree with the QVERIFY2 condition below

Even if the system is not under high load, this test can generate 4
updates on Windows. This is seems to be because the timer actually
triggers before its supposed to (sometimes the second start() triggers
an update right before the animation is done (at timestamp 399 for
instance), forcing it to generate yet another timer event in order to
reach the end)).

Under high load conditions, too many things can break this test,
usually it finishes even before the pause(), causing the
QVERIFY(animation.state() == QAbstractAnimation::Paused);
to fail.

Change-Id: Id94c0d16656675bc6165b7795f3c41a30616a3ba
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
tests/auto/corelib/animation/qpauseanimation/tst_qpauseanimation.cpp