create a .qmake.cache for the lupdate tests
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>
Mon, 13 May 2013 16:19:28 +0000 (18:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 21 May 2013 12:43:24 +0000 (14:43 +0200)
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>
tests/auto/linguist/lupdate/.gitignore
tests/auto/linguist/lupdate/tst_lupdate.cpp

index a11e8d1..0d6c023 100644 (file)
@@ -2,3 +2,4 @@ tst_lupdate
 testdata/*/*.ts
 testdata/*/*/*.ts
 testdata/*/*/*/*.ts
+testdata/good/*/.qmake.cache
index 2e68383..06f7846 100644 (file)
@@ -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 ");