From: Paul F. <pa...@so...> - 2025-01-25 20:17:41
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=3db79fb9e5232349b4e35f8d366b45b013dd9649 commit 3db79fb9e5232349b4e35f8d366b45b013dd9649 Author: Paul Floyd <pj...@wa...> Date: Sat Jan 25 21:16:37 2025 +0100 Darwin regtest: update none faultstatus test Test 2 on Darwin generated SIGBUS not SIGSEGV. Diff: --- none/tests/faultstatus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/none/tests/faultstatus.c b/none/tests/faultstatus.c index e04bad6081..9e262395bc 100644 --- a/none/tests/faultstatus.c +++ b/none/tests/faultstatus.c @@ -170,7 +170,11 @@ int main() const struct test tests[] = { #define T(n, sig, code, addr) { test##n, sig, code, addr } T(1, SIGSEGV, SEGV_MAPERR, BADADDR), +#if defined(VGO_darwin) + T(2, SIGBUS, SEGV_ACCERR, mapping), +#else T(2, SIGSEGV, SEGV_ACCERR, mapping), +#endif T(3, SIGBUS, BUS_ERROR_SI_CODE, &mapping[FILESIZE+10]), T(4, SIGFPE, DIVISION_BY_ZERO_SI_CODE, 0), #undef T |