Remove insignification from QtConcurrentFilter test.

This test has one unstable failure that occurs about 0.8% of the time in
CI.  Make the test catch this particular failure and re-enable the rest
of the test.

Task-number: QTBUG-20688
Change-Id: I22f5d372db77ea35163f96195ac0c174d8078899
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
bb10
Jason McDonald 2012-04-18 22:14:04 +10:00 committed by Qt by Nokia
parent 77cc912590
commit fb0978e963
2 changed files with 2 additions and 2 deletions

View File

@ -3,5 +3,3 @@ TARGET = tst_qtconcurrentfilter
QT = core testlib concurrent
SOURCES = tst_qtconcurrentfilter.cpp
DEFINES += QT_STRICT_ITERATORS
CONFIG += insignificant_test # See QTBUG-20688

View File

@ -1472,6 +1472,8 @@ void tst_QtConcurrentFilter::noDetach()
QVERIFY(ll.isDetached() == false);
QtConcurrent::filter(l, waitFilterfn).waitForFinished();
if (!l.isDetached())
QEXPECT_FAIL("", "QTBUG-20688: Known unstable failure", Abort);
QVERIFY(l.isDetached() == true);
QVERIFY(ll.isDetached() == true);
}