]> granicus.if.org Git - graphviz/commitdiff
increase stack size on macOS to 32MB
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 1 Jan 2023 02:22:43 +0000 (18:22 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 1 Jan 2023 03:44:32 +0000 (19:44 -0800)
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

CHANGELOG.md
cmd/dot/CMakeLists.txt
tests/regression_tests/large/test_large_graphs.py

index be55ee0d9fb3ac52c1b29a4c9a8d65346aabe3d7..1be153c542dbed613ebdb19b6cff61aaa6f1caf6 100644 (file)
@@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
   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
 
index b4fdac874cb752e79cf5ef17f3574cfc36a02408..cef5a8882374bf98cc616f7185b1038fb2d47595 100644 (file)
@@ -21,7 +21,9 @@ target_link_libraries(dot
   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")
index c6dc579fd9803f9c6c749e0131bdd924db1d206c..c5fe5dc567c9a19c2175160c9bbe4817c125323e 100644 (file)
@@ -4,16 +4,12 @@ Tests of large and/or expensive graphs.
 
 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.