Don't use "capture" for DiffAlg package tests.
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/1728
Applied-Upstream: 1.18, https://github.com/Macaulay2/M2/pull/1829
Last-Update: 2021-01-18

Gbp-Pq: Name dont-capture-diffalg-tests.patch

M2/Macaulay2/m2/examples.m2

index e2ce350aecf275ab9f0ed2b00c819aa6ebf34dc1..788f09d36db39f1b53aaa9e0840b465477b99e1e 100644 (file)
@@ -115,7 +115,7 @@ isCapturable = (inputs, pkg, isTest) -> (
     inputs = replace("-\\*.*?\\*-", "", inputs);
     -- 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"}, pkg#"pkgname")
+    and not match({"EngineTests", "ThreadedGB", "RunExternalM2", "DiffAlg"}, pkg#"pkgname")
     -- 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