test: fixed tst_qundostack and removed CONFIG+=insignificant_test

This test had an invalid circular dependency: the test is in qtbase, and
it depends on lrelease in qttools, which depends on qtbase.

Change the test to skip if lrelease is not available or not working.

Change-Id: I4696f4a178a6f8c0f2e76b5c4ae7f60c4f953334
Reviewed-on: http://codereview.qt.nokia.com/2619
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
Sergio Ahumada 2011-08-04 12:41:32 +02:00 committed by Qt by Nokia
parent dcd435b7fc
commit 1eea477323
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,3 @@
CONFIG += qttest_p4
SOURCES += tst_qundostack.cpp
TARGET = tst_qundostack
CONFIG+=insignificant_test

View File

@ -2970,6 +2970,11 @@ void tst_QUndoStack::undoLimit()
void tst_QUndoStack::commandTextFormat()
{
QString binDir = QLibraryInfo::location(QLibraryInfo::BinariesPath);
if (QProcess::execute(binDir + "/lrelease -version") != 0) {
QSKIP("lrelease is missing or broken", SkipAll);
}
QVERIFY(!QProcess::execute(binDir + "/lrelease testdata/qundostack.ts"));
QTranslator translator;