summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-07-29 13:56:58 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-07-29 14:01:56 +0000
commit215c78da617621d4301fd0f9e78a8873a3ef9a0e (patch)
treea724d1ee556721d7b55797ff1d9349eb54061c92
parent7b781d27b50c92ff87ac7467844fed0f1a8ef024 (diff)
downloadqbs-215c78da617621d4301fd0f9e78a8873a3ef9a0e.tar.gz
Fix TestApi::disappearedWildcardFile()
... for file systems with low timestamp resolution. Change-Id: Ie94543c229d912e79442399dbf095d9b77b8e1d4 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
-rw-r--r--tests/auto/api/tst_api.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/api/tst_api.cpp b/tests/auto/api/tst_api.cpp
index 94b8da87e..9e0e9ee52 100644
--- a/tests/auto/api/tst_api.cpp
+++ b/tests/auto/api/tst_api.cpp
@@ -1126,6 +1126,7 @@ void TestApi::disappearedWildcardFile()
QVERIFY(waitForFinished(buildJob.get()));
VERIFY_NO_ERROR(buildJob->error());
+ WAIT_FOR_NEW_TIMESTAMP();
const QString fileToRemove = QFileInfo(setupParams.projectFilePath()).path() + "/file2.txt";
QVERIFY(QFile::remove(fileToRemove));
buildJob.reset(project.buildAllProducts({}));