Test: remove QSKIP in tst_QEventLoop::throwInExec()
Instead omit the whole test when appropriate. Change-Id: I60c34b020f6e25e865bbe0182395d4fc6419f65e Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
parent
328a9420d0
commit
9c0544f884
@ -183,7 +183,9 @@ private slots:
|
|||||||
// This test *must* run first. See the definition for why.
|
// This test *must* run first. See the definition for why.
|
||||||
void processEvents();
|
void processEvents();
|
||||||
void exec();
|
void exec();
|
||||||
|
#if !defined(QT_NO_EXCEPTIONS) && !defined(Q_OS_WINCE_WM)
|
||||||
void throwInExec();
|
void throwInExec();
|
||||||
|
#endif
|
||||||
void reexec();
|
void reexec();
|
||||||
void execAfterExit();
|
void execAfterExit();
|
||||||
void wakeUp();
|
void wakeUp();
|
||||||
@ -320,17 +322,15 @@ void tst_QEventLoop::exec()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(QT_NO_EXCEPTIONS) && !defined(Q_OS_WINCE_WM)
|
||||||
|
// Exceptions need to be enabled for this test
|
||||||
|
// Q_OS_WINCE_WM case: this platform doesn't support propagating exceptions through the event loop
|
||||||
|
// Windows Mobile cannot handle cross library exceptions
|
||||||
|
// qobject.cpp will try to rethrow the exception after handling
|
||||||
|
// which causes gwes.exe to crash
|
||||||
void tst_QEventLoop::throwInExec()
|
void tst_QEventLoop::throwInExec()
|
||||||
{
|
{
|
||||||
#if defined(QT_NO_EXCEPTIONS) || defined(NO_EVENTLOOP_EXCEPTIONS)
|
// exceptions compiled in, runtime tests follow.
|
||||||
QSKIP("Exceptions are disabled");
|
|
||||||
#elif defined(Q_OS_WINCE_WM)
|
|
||||||
// Windows Mobile cannot handle cross library exceptions
|
|
||||||
// qobject.cpp will try to rethrow the exception after handling
|
|
||||||
// which causes gwes.exe to crash
|
|
||||||
QSKIP("This platform doesn't support propagating exceptions through the event loop");
|
|
||||||
#else
|
|
||||||
// exceptions compiled in, runtime tests follow.
|
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
// C++ exceptions can't be passed through glib callbacks. Skip the test if
|
// C++ exceptions can't be passed through glib callbacks. Skip the test if
|
||||||
// we're using the glib event loop.
|
// we're using the glib event loop.
|
||||||
@ -366,8 +366,8 @@ void tst_QEventLoop::throwInExec()
|
|||||||
}
|
}
|
||||||
QCOMPARE(caughtExceptions, 2);
|
QCOMPARE(caughtExceptions, 2);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void tst_QEventLoop::reexec()
|
void tst_QEventLoop::reexec()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user