diff options
author | Mark Mentovai <mark@chromium.org> | 2019-04-19 17:08:56 -0400 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2019-04-19 21:42:27 +0000 |
commit | 8c70c504b241f918e41f28a3102f5ca03475082b (patch) | |
tree | b50206b34e6fa0498ff25a6971af6159d2c90f9c /src/common/stabs_reader.cc | |
parent | Use correct c++ standard library in Xcode project. (diff) | |
download | breakpad-8c70c504b241f918e41f28a3102f5ca03475082b.tar.xz |
Make breakpad_unittests work with Chrome's test runner instead of gtest's
Chrome's test runner on Linux installs its own StackDumpSignalHandler
which swallows signals and doesn't re-raise them. This is sloppy, but
apparently there are reasons (https://crbug.com/551681). For
breakpad_unittests, it causes problems where a test process expects (via
waitpid()) to observe a child crash. Deal with those cases by
explicitly restoring the default signal handler.
In another case, Chrome's test runner seems to have been arriving at the
conclusion that it was to expect output from a child. Transitioning from
exit() to _exit() fixes this problem, and it's not necessarily a bad
idea to do this in post-fork() children without an execve() anyway.
Bug: chromium:949098
Change-Id: I5a6af0c2a09cd8eac9998358f6d5ea665288236f
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1575670
Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/common/stabs_reader.cc')
0 files changed, 0 insertions, 0 deletions