diff options
author | Chris Adams <chris.adams@qinetic.com.au> | 2017-03-17 19:10:00 +1000 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2017-03-29 15:08:48 +0000 |
commit | 59167a6fb64edd533f49124a47a7a0d70616bf33 (patch) | |
tree | 12de403a931abb8b5aed5e2c1ef8e7ff68f2de76 /doc | |
parent | e3ce7e3471957939b4dbc0813c15ac935dddbd87 (diff) |
Fix QVersitReader::testReading unit test
The reader spawns a worker thread to perform reading and parsing,
which then emits state change signals back to the main thread.
Previously, signals emitted in one test case could interfere with
another test, as the event queue was not drained prior to performing
condition verification.
This commit applies more strict verification to the first test
and then ensures that the signals have been received before beginning
the second test.
Task-number: QTBUG-59434
Change-Id: I5b006ae182723989aff640164431fb731896921e
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions