summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/qundostack/qundostack.pro2
-rw-r--r--tests/auto/qundostack/tst_qundostack.cpp5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/qundostack/qundostack.pro b/tests/auto/qundostack/qundostack.pro
index 91fdcab025..beb0b103b2 100644
--- a/tests/auto/qundostack/qundostack.pro
+++ b/tests/auto/qundostack/qundostack.pro
@@ -1,5 +1,3 @@
CONFIG += qttest_p4
SOURCES += tst_qundostack.cpp
TARGET = tst_qundostack
-
-CONFIG+=insignificant_test
diff --git a/tests/auto/qundostack/tst_qundostack.cpp b/tests/auto/qundostack/tst_qundostack.cpp
index 5a09b9a2ae..834c2d5d50 100644
--- a/tests/auto/qundostack/tst_qundostack.cpp
+++ b/tests/auto/qundostack/tst_qundostack.cpp
@@ -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;