summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-05-03 19:37:47 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-06-12 20:12:45 +0000
commit96bf7b01f6adfe042630953eafa66942773be068 (patch)
tree7a71509ef76cabd61a046bd218db8aa83ddc748e /tests
parentc3ad3ad4195665cf06db09159580cd52dde53901 (diff)
FatalSignalHandler: print the signal name on crash
It's easier to remember what "SIGSEGV" means instead of "11". GNU libc has offered sigabbrev_np() (non-portable) since 2.32; for older libcs, we'll be happy with a hardcoded list. Selftest updated to match... though it didn't seem to be necessary. Change-Id: I5ff8e16fcdcb4ffd9ab6fffd16ebc66ecf6e9465 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 17454bf9c60d9a7f836461234f48e1bb9d7d5bf9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/testlib/selftests/expected_crashes_4.txt2
-rw-r--r--tests/auto/testlib/selftests/expected_crashes_5.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/testlib/selftests/expected_crashes_4.txt b/tests/auto/testlib/selftests/expected_crashes_4.txt
index 90ae91b8ba..6bb9b3ecf8 100644
--- a/tests/auto/testlib/selftests/expected_crashes_4.txt
+++ b/tests/auto/testlib/selftests/expected_crashes_4.txt
@@ -1,6 +1,6 @@
********* Start testing of tst_Crashes *********
Config: Using QtTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
PASS : tst_Crashes::initTestCase()
-QFATAL : tst_Crashes::crash() Received signal 11
+QFATAL : tst_Crashes::crash() Received signal 11 (SIGSEGV)
Function time: ms Total time: ms
FAIL! : tst_Crashes::crash() Received a fatal error.
diff --git a/tests/auto/testlib/selftests/expected_crashes_5.txt b/tests/auto/testlib/selftests/expected_crashes_5.txt
index 088b9c5324..a7df64e823 100644
--- a/tests/auto/testlib/selftests/expected_crashes_5.txt
+++ b/tests/auto/testlib/selftests/expected_crashes_5.txt
@@ -1,5 +1,5 @@
********* Start testing of tst_Crashes *********
Config: Using QtTest library @INSERT_QT_VERSION_HERE@, Qt @INSERT_QT_VERSION_HERE@
PASS : tst_Crashes::initTestCase()
-QFATAL : tst_Crashes::crash() Received signal 11
+QFATAL : tst_Crashes::crash() Received signal 11 (SIGSEGV)
Function time: ms Total time: ms