mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 07:48:14 +08:00
c4a8b32495
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