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)
commit6bea2f4f88ddc4437c4a072ca60118e7ad8ed834
treee29d3564f9a5d904c6a9e7ff27e9a9c2940dfc40
parent78aa3452f690cfa11ff49f9338f9a035335cf513
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

llvm-svn: 234353
llvm/include/llvm/Support/Signals.h
llvm/lib/Support/Unix/Signals.inc
llvm/lib/Support/Windows/Signals.inc
llvm/utils/unittest/UnitTestMain/TestMain.cpp