mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
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