add a timeout, in case the cycle was infinite

This commit is contained in:
Marco Martin 2014-09-01 16:40:38 +02:00
parent 5db7db4ae2
commit 7e73be169c

View File

@ -64,7 +64,7 @@ void FallbackPackageTest::cycle()
m_fallPkg.setFallbackPackage(m_pkg);
//The cycle should have been detected and filePath should take a not infinite tiume
QCOMPARE(m_pkg.filePath("ui", "otherfile.qml"), m_fallPkg.filePath("ui", "otherfile.qml"));
QTRY_COMPARE_WITH_TIMEOUT(m_pkg.filePath("ui", "otherfile.qml"), m_fallPkg.filePath("ui", "otherfile.qml"), 1000);
}
QTEST_MAIN(FallbackPackageTest)