diff options
author | Olli Salli <ollisal@gmail.com> | 2010-08-21 21:07:43 +0300 |
---|---|---|
committer | Olli Salli <ollisal@gmail.com> | 2010-08-21 21:07:43 +0300 |
commit | ea4cbc69911049eaf5959b2475740eb3fd37ed1a (patch) | |
tree | cde1c69f386ed09b347b1c735fd4c0bb37d0a7de /qt4/tests/lib/test.h | |
parent | 42d41b96bcb218c3f245f686c630d577725eb89e (diff) |
Add a conservative 10 minute watchdog to all tests
The primary purpose is to detect infinite waiting for events and busyloops in tests.
10 minutes should be plenty for any test to run even under heavy load. Let's increase it if it
causes problems. As a reference 10 seconds is enough on my computer for any of the current tests
even with a few concurrent CPU hog processes, so we should be pretty safe.
Diffstat (limited to 'qt4/tests/lib/test.h')
-rw-r--r-- | qt4/tests/lib/test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt4/tests/lib/test.h b/qt4/tests/lib/test.h index fc013a454..736213e72 100644 --- a/qt4/tests/lib/test.h +++ b/qt4/tests/lib/test.h @@ -27,6 +27,7 @@ protected Q_SLOTS: void expectSuccessfulCall(QDBusPendingCallWatcher*); void expectSuccessfulCall(Tp::PendingOperation*); void expectFailure(Tp::PendingOperation*); + void onWatchdog(); virtual void initTestCaseImpl(); virtual void initImpl(); |