diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-08-03 10:28:34 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-08-03 09:54:37 +0000 |
commit | 4b5803362114eaea3edbb57c9b47e03547ece20a (patch) | |
tree | 078ee2887c741ccbd17c913ff133b3dd5aab194a /tests | |
parent | 4cceb84d1c4a43fe4f984e6e4126c08175a97c6d (diff) |
Fix recursiveWildcards() autotest
We forgot to wait for a new timestamp before doing the file system
updates.
Change-Id: I23bdcabc397d2b490c81cd6e894fb9929b2f7c62
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/blackbox/tst_blackbox.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/blackbox/tst_blackbox.cpp b/tests/auto/blackbox/tst_blackbox.cpp index 08c72f2f3..2018259b1 100644 --- a/tests/auto/blackbox/tst_blackbox.cpp +++ b/tests/auto/blackbox/tst_blackbox.cpp @@ -1532,6 +1532,7 @@ void TestBlackbox::recursiveWildcards() QVERIFY2(outputFile.open(QIODevice::ReadOnly), qPrintable(outputFile.errorString())); QCOMPARE(outputFile.readAll(), QByteArray("file1.txtfile2.txt")); outputFile.close(); + WAIT_FOR_NEW_TIMESTAMP(); QFile newFile("dir/subdir/file3.txt"); QVERIFY2(newFile.open(QIODevice::WriteOnly), qPrintable(newFile.errorString())); newFile.close(); @@ -1540,6 +1541,7 @@ void TestBlackbox::recursiveWildcards() QVERIFY2(outputFile.open(QIODevice::ReadOnly), qPrintable(outputFile.errorString())); QCOMPARE(outputFile.readAll(), QByteArray("file1.txtfile2.txtfile3.txt")); outputFile.close(); + WAIT_FOR_NEW_TIMESTAMP(); QVERIFY2(newFile.remove(), qPrintable(newFile.errorString())); QVERIFY2(!newFile.exists(), qPrintable(newFile.fileName())); QCOMPARE(runQbs(QbsRunParameters("install", QStringList{ "--clean-install-root"})), 0); |