mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-28 15:50:26 +08:00
mac: Trigger a real SIGSYS on 32-bit x86 during tests
syscall(0) results in SIGSYS on x86_64, but not 32-bit x86. Choose a high number as a nonexistent syscall number. As of 10.12.4, the highest known system call number is 521. Test: crashpad_util_test Signals.Cause* Change-Id: I82dbd210f0c90fe933898ea0d360b431b10d090e Reviewed-on: https://chromium-review.googlesource.com/489826 Reviewed-by: Robert Sesek <rsesek@chromium.org>
This commit is contained in:
parent
15103742e0
commit
f03c7b2d8f
@ -180,7 +180,7 @@ void CauseSignal(int sig) {
|
||||
case SIGSYS: {
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
int rv = syscall(0);
|
||||
int rv = syscall(4095);
|
||||
#pragma clang diagnostic pop
|
||||
if (rv != 0) {
|
||||
PLOG(ERROR) << "syscall";
|
||||
|
Loading…
x
Reference in New Issue
Block a user