diff options
author | Oswald Buddenhagen <oswald.buddenhagen@digia.com> | 2013-05-13 18:19:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-21 14:43:24 +0200 |
commit | 402ccf4cfa293cd024624c87e7110d1c100ed295 (patch) | |
tree | b94062d521550dbb8df79669f148eeaeafed2ade | |
parent | 94ab2efb2d155d3c1ca7b91c1daf443a149bcf1f (diff) | |
download | qttools-402ccf4cfa293cd024624c87e7110d1c100ed295.tar.gz |
create a .qmake.cache for the lupdate tests
mac mkspecs are really noisy without it now, which makes the tests fail.
Change-Id: I6b4900c51d0b8aedd9309482a30055e48c3b9f69
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
-rw-r--r-- | tests/auto/linguist/lupdate/.gitignore | 1 | ||||
-rw-r--r-- | tests/auto/linguist/lupdate/tst_lupdate.cpp | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/linguist/lupdate/.gitignore b/tests/auto/linguist/lupdate/.gitignore index a11e8d146..0d6c02392 100644 --- a/tests/auto/linguist/lupdate/.gitignore +++ b/tests/auto/linguist/lupdate/.gitignore @@ -2,3 +2,4 @@ tst_lupdate testdata/*/*.ts testdata/*/*/*.ts testdata/*/*/*/*.ts +testdata/good/*/.qmake.cache diff --git a/tests/auto/linguist/lupdate/tst_lupdate.cpp b/tests/auto/linguist/lupdate/tst_lupdate.cpp index 2e6838371..06f7846b8 100644 --- a/tests/auto/linguist/lupdate/tst_lupdate.cpp +++ b/tests/auto/linguist/lupdate/tst_lupdate.cpp @@ -280,6 +280,10 @@ void tst_lupdate::good() QVERIFY2(QFile::copy(beforetsfile, genTs), qPrintable(beforetsfile)); } + file.setFileName(workDir + QStringLiteral("/.qmake.cache")); + QVERIFY(file.open(QIODevice::WriteOnly)); + file.close(); + if (lupdatecmd.isEmpty()) lupdatecmd = QLatin1String("project.pro"); lupdatecmd.prepend("-silent "); |