qt5base-lts/tests/auto/widgets/dialogs/qfilesystemmodel
Friedemann Kleint 58b70c2f1a tst_QFileSystemModel: Stabilize readOnly(), sortPersistentIndex()
The tests start to show flakyness on Linux in 5.10 (rowCount() check
failing). This seems to point to a race condition between the files
showing up and the file system watchers of QFileSystemModel starting.

To fix this, close the file and wait until it shows up in the directory
before pointing the QFileSystemModel to it. The tests then no longer
rely on the file system watchers.

Change-Id: I39cffb4cacf6843e8e4180efb405345307c78dd8
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
2017-11-30 10:16:48 +00:00
..
.gitignore Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00
qfilesystemmodel.pro tests: Remove superfluous gui additions to QT 2014-02-28 17:59:29 +01:00
tst_qfilesystemmodel.cpp tst_QFileSystemModel: Stabilize readOnly(), sortPersistentIndex() 2017-11-30 10:16:48 +00:00