Winrt: Skip qthread autotests, which are not supported (yet)

Change-Id: Ib1047731667ba8a7b9db2f62924eb42a6b85b4fd
Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
bb10
Oliver Wolff 2013-05-27 15:54:06 +02:00 committed by The Qt Project
parent ffb92a5691
commit 8cbc90ffb2
1 changed files with 12 additions and 0 deletions

View File

@ -328,6 +328,9 @@ void tst_QThread::isRunning()
void tst_QThread::setPriority()
{
#if defined(Q_OS_WINRT)
QSKIP("Thread priority is not supported on WinRT");
#endif
Simple_Thread thread;
// cannot change the priority, since the thread is not running
@ -478,6 +481,9 @@ void tst_QThread::start()
void tst_QThread::terminate()
{
#if defined(Q_OS_WINRT)
QSKIP("Terminate is not supported on WinRT");
#endif
Terminate_Thread thread;
{
QMutexLocker locker(&thread.mutex);
@ -541,6 +547,9 @@ void tst_QThread::finished()
void tst_QThread::terminated()
{
#if defined(Q_OS_WINRT)
QSKIP("Terminate is not supported on WinRT");
#endif
SignalRecorder recorder;
Terminate_Thread thread;
connect(&thread, SIGNAL(finished()), &recorder, SLOT(slot()), Qt::DirectConnection);
@ -792,6 +801,9 @@ void tst_QThread::adoptedThreadAffinity()
void tst_QThread::adoptedThreadSetPriority()
{
#if defined(Q_OS_WINRT)
QSKIP("Thread priority is not supported on WinRT");
#endif
NativeThreadWrapper nativeThread;
nativeThread.setWaitForStop();