Fix ExceptionPorts.TaskAndThreadExceptionPorts under better compiler optimization.
Fix ExceptionPorts.TaskAndThreadExceptionPorts under better compiler
optimization.

Newer versions of clang (in this case, trunk r231191) can see through
the pointless division by zero and optimize it away. This caused the
test to hang in release mode.

A 50ms timeout is added to each test to transform the hang into a
failure. The test was split into 12 tests to provide better feedback and
control.

To fix the bug, the division by zero is replaced by __builtin_trap().

TEST=crashpad_util_test ExceptionPorts.*
R=rsesek@chromium.org

Review URL: https://codereview.chromium.org/993613004

hokein/crashpad,hokein/crashpad,atom/crashpad,hankbao/Crashpad,chromium/crashpad,Chilledheart/crashpad,atom/crashpad,hankbao/Crashpad,Chilledheart/crashpad,Chilledheart/crashpad,hokein/crashpad,chromium/crashpad,hankbao/Crashpad,atom/crashpad,chromium/crashpad