diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-07 09:04:35 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-02-14 16:07:10 +0000 |
commit | a7600bf60453305a2b3344a9c1cd35ca4b2bf7fd (patch) | |
tree | 275dc9e7fbf1058c1deb47ec5b190ceafa45f663 /src/gui/opengl/qopengl.h | |
parent | 318f728283c08ffb93c7469f671b43a010c57e0d (diff) |
QTestlib/selftests: Refactor comparison
The "crashes" subtest has several "expected" reference files. The matching
one was previously determined by checking the line count of the output.
This however does not work when there are several reference files with
identical line count as is now the case with boot2qt.
Refactor the comparison code from the QTest/preliminary void return to
the bool f(QString* errorMessage) convention so that all files can be tried.
While doing so, streamline the code and remove numerous unneeded
allocations of strings and regular expressions per compared line.
Task-number: QTBUG-65845
Change-Id: I722159d1753f2a36f0e497e315ffd81cb58cac0b
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/gui/opengl/qopengl.h')
0 files changed, 0 insertions, 0 deletions