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:
parent
ec2aa7d282
commit
651a03b0dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user