summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-28 14:12:32 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-28 15:06:36 +0000
commitaa0499cefda1f808e6361e400d02a04cd4a0ef65 (patch)
tree86c30eb0189d12409b3f78dbd99a335e3e7911cb /vcl/qa/cppunit
parent9e67149741bf753fd802737701117a095bea846f (diff)
coverity#982593 experiment with silencing Infinite loop
etc. Change-Id: I1548d60280ab4f74fe023d026435a05f7865b516
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/timer.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index d432f8a75f1f..0732baaf5a96 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -104,6 +104,7 @@ void TimerTest::testDurations()
{
bool bDone = false;
TimerBool aTimer( aDurations[i], bDone );
+ // coverity[infinite_loop]
while( !bDone )
{
Application::Yield();
@@ -134,6 +135,7 @@ void TimerTest::testAutoTimer()
{
sal_Int32 nCount = 0;
AutoTimerCount aCount(1, nCount);
+ // coverity[infinite_loop]
while (nCount < 100) {
Application::Yield();
}
@@ -161,6 +163,7 @@ void TimerTest::testRecursiveTimer()
sal_Int32 nCount = 0;
YieldTimer aCount(5);
AutoTimerCount aCountUp( 3, nCount );
+ // coverity[infinite_loop]
while (nCount < 20)
Application::Yield();
}
@@ -194,8 +197,10 @@ void TimerTest::testSlowTimerCallback()
sal_Int32 nCount = 0;
AutoTimerCount aHighFreq(1, nCount);
SlowCallbackTimer aSlow(250, bBeenSlow);
+ // coverity[infinite_loop]
while (!bBeenSlow)
Application::Yield();
+ // coverity[infinite_loop]
while (nCount < 200)
Application::Yield();
}