diff options
| author | Dimitrios Apostolou <jimis@qt.io> | 2025-10-08 17:30:56 +0200 |
|---|---|---|
| committer | Dimitrios Apostolou <jimis@qt.io> | 2025-12-11 20:02:21 +0100 |
| commit | fa384e4b8f2a5ae7289e7eb11b77e330bcb31457 (patch) | |
| tree | ef51d9b208e5634ddbbab6098ddede13866ad088 /examples/sql/sqlwidgetmapper/main.cpp | |
| parent | cc908d937087b0251f007a2b6a94938a6cfa5b13 (diff) | |
qt-testrunner: consider exit codes >=128 as CRASH
Previously it was only < 0, which was valid because Python set those on
POSIX platforms to represent signal number. By checking >=128 we also
accommodate for crashes on windows and other unpredictable situations
(since QTest is limiting itself to [0,127]).
Also change the exit code of the mock test used for qt_testrunner
testing. 130 is what is shown by bash when a process is interrupted by
Ctrl-C (SIGINT), while 131 is what is shown for SIGQUIT and does not
happen that easily. Completely insignificant change for the python
programs like qt-testrunner and its tests, since subprocess.run()
returncode is negative in case of a signal. Only visible if qt_mock_test
is invoked in the shell for debugging purposes.
Pick-to: 6.11 6.10 6.8
Change-Id: I4759bc0e74ca2fb1d1594c71e541feb5363bb7ea
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/sql/sqlwidgetmapper/main.cpp')
0 files changed, 0 insertions, 0 deletions
