Skip to content

Commit 453d6fc

Browse files
committed
test-signalhandler.py: adjusted expected result for macos-14
1 parent 95131e0 commit 453d6fc

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/signal/test-signalhandler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import os
33
import sys
44
import pytest
5+
import platform
56

67
def __lookup_cppcheck_exe(exe_name):
78
# path the script is located in
@@ -61,7 +62,10 @@ def test_segv():
6162
assert stderr == ''
6263
lines = stdout.splitlines()
6364
if sys.platform == "darwin":
64-
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (at 0x0).'
65+
if int(platform.mac_ver()[1][0]) >= 14:
66+
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_ACCERR (at 0x0).'
67+
else:
68+
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (at 0x0).'
6569
else:
6670
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (reading at 0x0).'
6771
# no stacktrace on MacOS

0 commit comments

Comments
 (0)