testlib: Explicitly name watchdog timer thread

Simplifies debugging of issues where the watchdog thread is involved.

Change-Id: I4862167bca4a942c7d4319a9374f1f83f292d831
Reviewed-by: Simon Hausmann <hausmann@gmail.com>
This commit is contained in:
Tor Arne Vestbø 2020-01-31 18:40:17 +01:00
parent e7371c19d9
commit 1a189c0701

View File

@ -1026,6 +1026,7 @@ class WatchDog : public QThread
public: public:
WatchDog() WatchDog()
{ {
setObjectName(QLatin1String("QtTest Watchdog"));
auto locker = qt_unique_lock(mutex); auto locker = qt_unique_lock(mutex);
expecting = ThreadStart; expecting = ThreadStart;
start(); start();