diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-03 00:15:53 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-12-04 14:09:46 +0000 |
commit | a1a55d5b9301c4e7ea6f9ff1d1c5096081019a4d (patch) | |
tree | 7ab0c1f89cdca4484e5ea5635129d39b8de652d4 /.qmake.conf | |
parent | bc093cd294cbf48eb93b776fc0b927f0a43fa603 (diff) |
QTestLib: add a abort-on-fail environment variable
When debugging a spurious failure it's extremely useful to
run the test repeadtly into a debugger until a failure appears.
When that happens, one wants to immediately start debugging.
In so far, this has only been possible by placing breakpoints
inside Qt itself (when a failure is logged). Add another way:
an env variable, similar to QT_FATAL_WARNINGS, that makes
any failure fatal (terminate() gets called. Bonus: you can
control the termination handler!)
[ChangeLog][QtTestLib][QtTest] When the QTEST_FATAL_FAIL
environment variable is set to a non-zero value, a test
immediately aborts its execution. This is useful to debug
intermittent failures.
Change-Id: If2395f964ea482c30b8c8feab98db7fdee701cd3
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Jason McDonald <macadder1@gmail.com>
Diffstat (limited to '.qmake.conf')
0 files changed, 0 insertions, 0 deletions