Skip to content

Commit 577026a

Browse files
committed
Fix tests
1 parent 7a25d75 commit 577026a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/DebuggerFramework.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
__precompile__()
22
module DebuggerFramework
3-
using TerminalUI
4-
53
abstract type StackFrame end
64

75
function print_var(io::IO, name, val::Nullable, undef_callback)
@@ -111,10 +109,9 @@ module DebuggerFramework
111109
end
112110

113111
using Base: LineEdit, REPL
114-
function RunDebugger(stack, terminal = Base.active_repl.t)
112+
function RunDebugger(stack, repl = Base.active_repl, terminal = Base.active_repl.t)
115113
promptname(level, name) = "$level|$name > "
116114

117-
repl = Base.active_repl
118115
state = DebuggerState(stack, 1, nothing, terminal)
119116

120117
# Setup debug panel

test/brainstack.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,7 @@ const thisdir = dirname(@__FILE__)
127127
TerminalRegressionTests.automated_test(
128128
joinpath(thisdir,"brainstack/simple.multiout"),
129129
["si\n", "f 2\n", "si\n", "si\n", "\n", "\n"]) do emuterm
130-
DebuggerFramework.debug(asta, emuterm)
130+
repl = Base.REPL.LineEditREPL(emuterm, true)
131+
repl.interface = Base.REPL.setup_interface(repl)
132+
DebuggerFramework.debug(asta, repl, emuterm)
131133
end

0 commit comments

Comments
 (0)