File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ SCPyPlotExt = "PyPlot"
3333[compat ]
3434AbstractTrees = " 0.4"
3535CodeTracking = " 1.3.9, 2, 3"
36- Cthulhu = " 2.17.6"
36+ Cthulhu = " 2.17.6, 3 "
3737FlameGraphs = " 1"
3838InteractiveUtils = " 1"
3939JET = " 0.9, 0.10, 0.11"
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ using Cthulhu.Testing
66using Pkg
77using Test
88
9+ @static if Base. pkgversion (Cthulhu) < v " 3.0.0-"
10+ const VirtualTerminal = FakeTerminal
11+ end
12+
913# NOTE: the Cthulhu test is handled specially in `.github/workflows/ci.yml`
1014
1115macro with_try_stderr (out, expr)
5660 tree = last (trees)
5761 sig, root = only (tree. mt_backedges)
5862
59- term = FakeTerminal ()
63+ term = VirtualTerminal ()
6064 t = @async begin
6165 @with_try_stderr term. output redirect_stderr (term. error) do
6266 ascend (term, root)
8084 itrigs = inference_triggers (tinf; exclude_toplevel= false )
8185 itrig = last (itrigs)
8286
83- term = FakeTerminal ()
87+ term = VirtualTerminal ()
8488 t = @async begin
8589 @with_try_stderr term. output ascend (term, itrig; interruptexc= false )
8690 end
You can’t perform that action at this time.
0 commit comments