summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-15 15:39:10 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-15 16:55:40 +0100
commit1db9b9e5854c3ad8095fe9a41033a26e450188ab (patch)
treeafa6c3bb00a128a29cac8d2260ca0751d3b7f27f /vcl/qa
parent08d7df9b057c62fbd0e3da14ab6a11088656f310 (diff)
coverity#1415095 annotate Infinite loop as false positive
Change-Id: I030a6bee3864e758177ce73b678ba22cd10ec217
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/timer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index c1f14ced5c38..3b28f56f4cda 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -319,7 +319,8 @@ void TimerTest::testAutoTimerStop()
sal_Int32 nTimerCount = 0;
const sal_Int32 nMaxCount = 5;
AutoTimerCount aAutoTimer( 0, nTimerCount, nMaxCount );
- while ( nMaxCount != nTimerCount )
+ // coverity[loop_top] - Application::Yield allows the timer to fire and increment TimerCount
+ while (nMaxCount != nTimerCount)
Application::Yield();
CPPUNIT_ASSERT( !aAutoTimer.IsActive() );
CPPUNIT_ASSERT( !Application::Reschedule() );