diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-31 15:23:17 +0100 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-01-31 21:18:48 +0100 |
| commit | 72f5b35b3d7704db6ef16e4c60751ed8444363be (patch) | |
| tree | bad01b21880dbcd7d9dcbe4e7387916bde9e0379 /src/sql/doc/snippets/code/code.pro | |
| parent | 62bea90207b6fde116ef6fbb926565b648708d57 (diff) | |
Stabilize tst_QFileSystemModel::showFilesOnly test case
Amends 83e5d74864a8780445db4b34e406afc53b331039.
A model index returned by QFileSystemModel might become invalid when
events get processed, so don't store the result of setRootPath to re-use
it in a QTRY_COMPARE function. Instead, always ask for a fresh model
index.
Also, use std::chrono::duration::count correctly; it returns the "tick",
not the corresponding milliseconds, so (10s).count() returns 10 instead
of 10000. Explicitly use 10000ms here.
Un-blacklist the test on macOS again.
Task-number: QTBUG-74471
Pick-to: 6.7 6.6 6.5
Change-Id: Ic98bb53c696441131bbc1055b64822faf2aec96f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/sql/doc/snippets/code/code.pro')
0 files changed, 0 insertions, 0 deletions
