winrt: Skip a test row of tst_QRegularExpression::threadSafety

PCRE2 does not support JIT on winrt. This test row takes a long time
(30 seconds here) without JIT and thus might cause test timeouts in
COIN when run on winrt.

Change-Id: I79d9f6be16dbe16594ae2bf51f353acd06b3d2fe
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Oliver Wolff 2018-10-25 15:28:40 +02:00
parent aa0e3d02d5
commit 7e7514482f

View File

@ -2108,12 +2108,16 @@ void tst_QRegularExpression::threadSafety_data()
QTest::addRow("pattern%d", ++i) << "ab.*cd" << subject;
}
// pcre2 does not support JIT for winrt. As this test row takes a long time without JIT we skip
// it for winrt as it might time out in COIN.
#ifndef Q_OS_WINRT
{
QString subject = "ab";
subject.append(QString(512*1024, QLatin1Char('x')));
subject.append("c");
QTest::addRow("pattern%d", ++i) << "ab.*cd" << subject;
}
#endif // Q_OS_WINRT
{
QString subject = "ab";