Skip to content

Commit b20a447

Browse files
authored
update to test on 1.6 (#285)
1 parent 1b9a4d3 commit b20a447

File tree

9 files changed

+216
-208
lines changed

9 files changed

+216
-208
lines changed

.travis.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ os:
88
julia:
99
- 1.0
1010
- 1
11+
- 1.6
1112
- nightly
1213

1314
branches:
@@ -17,14 +18,6 @@ branches:
1718
notifications:
1819
email: false
1920

20-
script:
21-
- julia --project --color=yes -e 'using Pkg;
22-
Pkg.instantiate();
23-
Pkg.add([PackageSpec(name = "TerminalRegressionTests", rev = "master"),
24-
PackageSpec(name = "VT100", rev = "master")]);
25-
Pkg.build();
26-
Pkg.test(coverage=true)'
27-
2821
after_success:
2922
# push coverage results to Codecov
3023
- julia -e 'import Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'

src/printing.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ function print_next_expr(io::IO, frame::Frame)
9797
expr.args[i] = maybe_quote(val)
9898
end
9999
end
100+
if isdefined(Core, :ReturnNode)
101+
if expr isa Core.ReturnNode
102+
val = try
103+
@lookup(frame, expr.val)
104+
catch err
105+
err isa UndefVarError || rethrow(err)
106+
expr.val
107+
end
108+
expr = Expr(:return, maybe_quote(val))
109+
end
110+
end
100111
expr = pattern_match_kw_call(expr)
101112
expr = pattern_match_apply_call(expr, frame)
102113
limit_expr = repr_limited(expr, MAX_BYTES_REPR[], print)

src/repl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function RunDebugger(frame, repl = nothing, terminal = nothing; initial_continue
108108
if isempty(s) || position(LineEdit.buffer(s)) == 0
109109
toggle_mode(state)
110110
write(state.terminal, '\r')
111-
LineEdit.write_prompt(state.terminal, panel)
111+
write_prompt(state.terminal, panel)
112112
else
113113
LineEdit.edit_insert(s, "C")
114114
end

test/misc.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ frame = Debugger.@make_frame f()
5757
state = dummy_state(frame)
5858
execute_command(state, Val{:n}(), "n")
5959
defline, current_line, body = Debugger.locinfo(state.frame)
60-
@test occursin("handle_message(logger, level, msg", body)
60+
@test occursin("handle_message(logger, level", body)
6161

6262
f_unicode() =
6363

test/ui.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ end
101101

102102

103103
@testset "UI" begin
104-
if Sys.isunix() && (v"1.5.0-A" <= VERSION < v"1.6.0-A")
104+
if Sys.isunix() && (v"1.6.0-A" <= VERSION < v"1.7.0-A")
105105
Debugger._print_full_path[] = false
106106
using TerminalRegressionTests
107107

test/ui/big_repr_ui.multiout

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
| 17, 18, 19, 20, 21, 22, 23, 24, 25,...>
3939
|1|debug> bt
4040
|[1] mysum(x) at ui.jl:96
41-
| | x::Array{Int64,1} = <[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
42-
| 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 2...>
41+
| | x::Vector{Int64} = <[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
42+
|17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 2...>
4343
| | s::Int64 = 0
4444
|1|debug>
4545
--------------------------------------------------
@@ -57,6 +57,6 @@
5757
|CCCCCCCCCAA
5858
|AAAAAAAAAAAAAAAAAAAAAAAA
5959
|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
60-
|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
60+
|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
6161
|AAAAAAAAAAAAAAAA
6262
|CCCCCCCCC

test/ui/history_break_error.multiout

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
|Breaking for error:
2020
|ERROR: foo
2121
|Stacktrace:
22-
| [1] error(::String) at error.jl:33
22+
| [1] error(s::String)
23+
| @ Base error.jl:33
2324
|
2425
|In error(s) at error.jl:33
2526
|>33 error(s::AbstractString) = throw(ErrorException(s))
@@ -33,9 +34,10 @@
3334
|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
3435
|CCCCCCCCCA
3536
|AAAAAAAAAAAAAAAAAAA
36-
|DDDDDDDDDD
37-
|EEEEEEEEEEE
38-
|EEEEEEEEEEEAAAAAAAAEAAAAEEEEEEEEEEE
37+
|DDDDDDDAAA
38+
|AAAAAAAAAAA
39+
|AAAAAEEEEEEFEEAAAAAAE
40+
|FFFFFGGGGEHHHHHHHHHHH
3941
|
4042
|AAAAAAAAAAAAAAAAAAAAAAAAAA
4143
|BBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@@ -51,7 +53,8 @@
5153
|Breaking for error:
5254
|ERROR: foo
5355
|Stacktrace:
54-
| [1] error(::String) at error.jl:33
56+
| [1] error(s::String)
57+
| @ Base error.jl:33
5558
|
5659
|In error(s) at error.jl:33
5760
|>33 error(s::AbstractString) = throw(ErrorException(s))
@@ -68,9 +71,10 @@
6871
|AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
6972
|CCCCCCCCCA
7073
|AAAAAAAAAAAAAAAAAAA
71-
|DDDDDDDDDD
72-
|EEEEEEEEEEE
73-
|EEEEEEEEEEEAAAAAAAAEAAAAEEEEEEEEEEE
74+
|DDDDDDDAAA
75+
|AAAAAAAAAAA
76+
|AAAAAEEEEEEFEEAAAAAAE
77+
|FFFFFGGGGEHHHHHHHHHHH
7478
|
7579
|AAAAAAAAAAAAAAAAAAAAAAAAAA
7680
|BBBBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

0 commit comments

Comments
 (0)