From 402ccf4cfa293cd024624c87e7110d1c100ed295 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 13 May 2013 18:19:28 +0200 Subject: [PATCH] create a .qmake.cache for the lupdate tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit mac mkspecs are really noisy without it now, which makes the tests fail. Change-Id: I6b4900c51d0b8aedd9309482a30055e48c3b9f69 Reviewed-by: Tor Arne Vestbø Reviewed-by: Friedemann Kleint --- tests/auto/linguist/lupdate/.gitignore | 1 + tests/auto/linguist/lupdate/tst_lupdate.cpp | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tests/auto/linguist/lupdate/.gitignore b/tests/auto/linguist/lupdate/.gitignore index a11e8d1..0d6c023 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 2e68383..06f7846 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 "); -- 2.7.4