Similar to the prior situation with Windows platforms, the CMake build on macOS
was failing the long chain test due to insufficient stack reservation. This
change applies the same increase there. Note that there is no need to adjust the
Autotools build, which seems to handle this test case fine on all platforms.
Gitlab: closes #1710
in preference over Qt5. #2233
- Reserved stack size on Windows for the `dot.exe` binary has been increased
from ~3.8MB to 32MB. #1710
+- Reserved stack size on macOS for the `dot` binary when built with CMake has
+ been increased from 8MB to 32MB. #1710
### Fixed
gvc
)
-if(MINGW)
+if(APPLE)
+ set_target_properties(dot PROPERTIES LINK_FLAGS -Wl,-stack_size,0x2000000)
+elseif(MINGW)
set_target_properties(dot PROPERTIES LINK_FLAGS -Wl,--stack,0x2000000)
elseif(WIN32)
set_target_properties(dot PROPERTIES LINK_FLAGS /STACK:"33554432")
import os
from pathlib import Path
-import platform
import subprocess
import sys
-import pytest
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../tests"))
from gvtest import dot #pylint: disable=wrong-import-position
-@pytest.mark.xfail(platform.system() == "Darwin",
- reason="https://gitlab.com/graphviz/graphviz/-/issues/1710")
def test_long_chain():
"""
This test will fail on 32bit Windows machine if compiled with stack size < 16MB.