summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-08-27 22:01:21 +0200
committerMichael Stahl <mstahl@redhat.com>2015-08-27 22:03:47 +0200
commit2bef9a434bdf5c6185a72616874c61eae1a0e718 (patch)
treeff9cd678c88fb602ae88e6c5b99b7f195ecd10c8 /vcl/qa
parent5ed690a3e8a575784ca25048e0229ebc52e6fccd (diff)
vcl: print an error message in timer test watchdog
The CPPUNIT_ASSERT will actually crash the process because in the spawned thread there is nothing to catch the exception, which means that when the watchdog triggered there is no indication why the test failed. Change-Id: Id7d2a99fe62326c817f100e0755679861cb37788
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/timer.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/timer.cxx b/vcl/qa/cppunit/timer.cxx
index 76db8a81f97c..64a1ab93ed8e 100644
--- a/vcl/qa/cppunit/timer.cxx
+++ b/vcl/qa/cppunit/timer.cxx
@@ -42,6 +42,7 @@ public:
aWait.Seconds = mnSeconds;
aWait.Nanosec = 1000000; // +1ms
osl::Thread::wait( aWait );
+ fprintf(stderr, "ERROR: WatchDog timer thread expired, failing the test!");
CPPUNIT_ASSERT_MESSAGE("watchdog triggered", false);
}
};