Fix for tst_qundostack autotest in shadow build

Added full path to src dir for testdata.

Task-number: QTBUG-32536
Change-Id: I5ef215d451a6407c277d2c98f21ffc35a8657e28
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Simo Fält 2013-07-24 14:26:27 +03:00 committed by The Qt Project
parent ec2aa7d282
commit 651a03b0dd

View File

@ -2974,10 +2974,14 @@ void tst_QUndoStack::commandTextFormat()
if (QProcess::execute(binDir + "/lrelease -version") != 0)
QSKIP("lrelease is missing or broken");
QVERIFY(!QProcess::execute(binDir + "/lrelease testdata/qundostack.ts"));
const QString tsFile = QFINDTESTDATA("testdata/qundostack.ts");
QVERIFY(!tsFile.isEmpty());
QVERIFY(!QProcess::execute(binDir + "/lrelease " + tsFile));
QTranslator translator;
QVERIFY(translator.load("testdata/qundostack.qm"));
const QString qmFile = QFINDTESTDATA("testdata/qundostack.qm");
QVERIFY(!qmFile.isEmpty());
QVERIFY(translator.load(qmFile));
qApp->installTranslator(&translator);
QUndoStack stack;