aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-06-01 16:11:56 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-06-04 07:46:06 +0000
commit61b078f88c659abcb32ea2ee71f979502cd446a8 (patch)
tree6618ff545c55b4f55dc786d956723ee365d09dc4 /tests
parent7e56ae5e9a14beab60aef2ad30335751c510f627 (diff)
Tests: Make use of the newly introduced TEXT_FILE_COMPARE macro
Change-Id: Idf6dbb7e0e97fd74e1f76291ea2556e9cd31a396 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/tst_blackbox.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp
index 1929296f4..41ce32e40 100644
--- a/tests/auto/blackbox/tst_blackbox.cpp
+++ b/tests/auto/blackbox/tst_blackbox.cpp
@@ -473,11 +473,7 @@ void TestBlackbox::artifactsMapInvalidation()
const QString projectDir = testDataDir + "/artifacts-map-invalidation";
QDir::setCurrent(projectDir);
QCOMPARE(runQbs(), 0);
- QFile sourceFile("file.in");
- QVERIFY2(sourceFile.open(QIODevice::ReadOnly), qPrintable(sourceFile.errorString()));
- QFile generatedFile(relativeProductBuildDir("p") + "/myfile.out");
- QVERIFY2(generatedFile.open(QIODevice::ReadOnly), qPrintable(generatedFile.errorString()));
- QCOMPARE(sourceFile.readAll(), generatedFile.readAll());
+ TEXT_FILE_COMPARE(relativeProductBuildDir("p") + "/myfile.out", "file.in");
}
void TestBlackbox::artifactsMapRaceCondition()