File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import os
33import sys
44import pytest
5+ import platform
6+
7+ from packaging .version import Version
58
69def __lookup_cppcheck_exe (exe_name ):
710 # path the script is located in
@@ -64,7 +67,10 @@ def test_segv():
6467 assert stderr == ''
6568 lines = stdout .splitlines ()
6669 if sys .platform == "darwin" :
67- assert lines [0 ] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (at 0x0).'
70+ if Version (platform .mac_ver ()[0 ]) >= Version ('14' ):
71+ assert lines [0 ] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_ACCERR (at 0x0).'
72+ else :
73+ assert lines [0 ] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (at 0x0).'
6874 else :
6975 assert lines [0 ] == 'Internal error: cppcheck received signal SIGSEGV - SEGV_MAPERR (reading at 0x0).'
7076 # no stacktrace on macOS
You can’t perform that action at this time.
0 commit comments