diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2016-08-16 17:49:48 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2016-08-16 15:58:38 +0000 |
commit | cd850c33abdb3f5cbbafe0c84488fc0e905db9f7 (patch) | |
tree | 4f4f0b755667ba697ef02a8e54eb43f7fd0e4b17 /tests | |
parent | 545ddb8bdd3e1db42ff57af5a6dfe19cc8112849 (diff) |
Fix generatedFilesList autotest on macOS
Change-Id: I7a2c33b857e3e888ac3905651ec2a33a6218e728
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/api/tst_api.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp index 7f5a852ac..285da5357 100644 --- a/tests/auto/api/tst_api.cpp +++ b/tests/auto/api/tst_api.cpp @@ -1142,7 +1142,7 @@ void TestApi::generatedFilesList() QCOMPARE(projectData.products().count(), 1); const qbs::ProductData product = projectData.products().first(); QString uiFilePath; - QCOMPARE(product.generatedArtifacts().count(), 6); + QVERIFY(product.generatedArtifacts().count() >= 6); foreach (const qbs::ArtifactData &a, product.generatedArtifacts()) { QVERIFY(a.isGenerated()); QFileInfo fi(a.filePath()); @@ -1153,7 +1153,8 @@ void TestApi::generatedFilesList() || fi.fileName() == "moc_mainwindow.cpp" || fi.fileName() == "moc_mainwindow.cpp" + objSuffix || fi.fileName() == "ui_mainwindow.h" - || fi.fileName() == HostOsInfo::appendExecutableSuffix("generated-files-list"), + || fi.fileName() == HostOsInfo::appendExecutableSuffix("generated-files-list") + || fi.fileName().endsWith(".plist"), qPrintable(fi.fileName())); } foreach (const qbs::GroupData &group, product.groups()) { |