diff options
author | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2016-05-12 13:30:26 +0200 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@qt.io> | 2016-09-19 08:13:27 +0000 |
commit | 3982e710cbde648b15bcf71b855d9145e308180f (patch) | |
tree | a96c917345e21dbd3b168e6b14724709c1f6385a /src/plugins/imageformats | |
parent | 42ac179631680a1df9c78d6051a1effc33d0d267 (diff) |
QTest: add debugger detection for macOS
Which, in Mach speak, is an exception handler for the process. Also
check if the crash reporter is in a mode that will show a dialog for
any crashed process. If so, leave it to that crash reporter to do stack
traces.
This patch has the nice side-effect that a crashing test won't have both
a debugger and CrashReporter generate stack traces.
You can check the settings for CrashReporter on macOS with the command:
defaults read com.apple.CrashReporter DialogType
If it is set to 'basic' or 'developer' or 'crashreport', CrashReporter
will show the dialog. If set to 'server' it won't. Any unattended system
should have it set to 'server' (which will have QTest invoke lldb to
generate stack traces):
defaults write com.apple.CrashReporter DialogType server
Change-Id: I39153e44cff15c00341857f178b1dcfab154f8ee
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/plugins/imageformats')
0 files changed, 0 insertions, 0 deletions