Add boolean to PrintStackTraceOnErrorSignal to disable crash reporting.
authorPete Cooper <peter_cooper@apple.com>
Tue, 7 Apr 2015 20:43:23 +0000 (20:43 +0000)
committerPete Cooper <peter_cooper@apple.com>
Tue, 7 Apr 2015 20:43:23 +0000 (20:43 +0000)
commitbf36adeed4aa5f41266ce0073cb8224448ae264d
tree6ecf8b5eaae82309a8bae27c294a5693547d4e25
parent696a3454def0003909964845f1f2789e05503d73
Add boolean to PrintStackTraceOnErrorSignal to disable crash reporting.

The current crash reporting on Mac OS is only disabled via an environment variable.
This adds a boolean (default false) which can also disable crash reporting.

The only client right now is the unittests which don't ever want crash reporting, but do want to detect killed programs.

Reduces the time to run the APFloat unittests on my machine from

[----------] 47 tests from APFloatTest (51250 ms total)

to

[----------] 47 tests from APFloatTest (765 ms total)

Reviewed by Reid Kleckner and Justin Bogner

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234353 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Signals.h
lib/Support/Unix/Signals.inc
lib/Support/Windows/Signals.inc
utils/unittest/UnitTestMain/TestMain.cpp