We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
macos-14
1 parent 95131e0 commit 453d6fcCopy full SHA for 453d6fc
1 file changed
test/signal/test-signalhandler.py
@@ -2,6 +2,7 @@
2
import os
3
import sys
4
import pytest
5
+import platform
6
7
def __lookup_cppcheck_exe(exe_name):
8
# path the script is located in
@@ -61,7 +62,10 @@ def test_segv():
61
62
assert stderr == ''
63
lines = stdout.splitlines()
64
if sys.platform == "darwin":
- 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).'
69
else:
70
assert lines[0] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (reading at 0x0).'
71
# no stacktrace on MacOS
0 commit comments