Don't use capture when running Core and Cremona tests on
authorDoug Torrance <dtorrance@piedmont.edu>
Sun, 24 Jan 2021 13:57:47 +0000 (13:57 +0000)
committerDoug Torrance <dtorrance@piedmont.edu>
Sun, 24 Jan 2021 13:57:47 +0000 (13:57 +0000)
Bug: https://github.com/Macaulay2/M2/issues/1834
Origin: https://github.com/Macaulay2/M2/pull/1866
Last-Update: 2021-01-24

32-bit architectures.  Otherwise, we run out of memory.

Gbp-Pq: Name dont-capture-check-core-32-bit.patch

M2/Macaulay2/m2/examples.m2

index 788f09d36db39f1b53aaa9e0840b465477b99e1e..157d8b2fcb5e28afa558a1fb74de0c3d92a03615 100644 (file)
@@ -116,6 +116,7 @@ isCapturable = (inputs, pkg, isTest) -> (
     -- TODO: remove this when the effects of capture on other packages is reviewed
     (isTest or match({"FirstPackage", "Macaulay2Doc"},            pkg#"pkgname"))
     and not match({"EngineTests", "ThreadedGB", "RunExternalM2", "DiffAlg"}, pkg#"pkgname")
+    and not (match({"Core", "Cremona"}, pkg#"pkgname") and version#"pointer size" == 4)
     -- FIXME: these are workarounds to prevent bugs, in order of priority for being fixed:
     and not match("(gbTrace|NAGtrace)",                       inputs) -- cerr/cout directly from engine isn't captured
     and not match("(notify|stopIfError|debuggingMode)",       inputs) -- stopIfError and debuggingMode may be fixable