Skip to content

Commit

Permalink
Fix debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Apr 10, 2024
1 parent bc5fcd9 commit 121936d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/utils/Banners/banners.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ if VERSION>=v"1.9"
# Banner of ModA shows
out, err = run_repl_code("using ModA;", td)
res = @test strip(out) == "Banner of ModA" broken=VERSION>=v"1.11.0-DEV"
if res == Test.Fail
if res isa Test.Fail
println("out\n$out")
println("err\n$err")
end

# Banner of ModB shows, but ModA is supressed
out, err = run_repl_code("using ModB;", td)
res = @test strip(out) == "Banner of ModB" broken=VERSION>=v"1.11.0-DEV"
if res == Test.Fail
if res isa Test.Fail
println("out\n$out")
println("err\n$err")
end
Expand All @@ -54,15 +54,15 @@ if VERSION>=v"1.9"
# used after ModB
out, err = run_repl_code("using ModB; using ModA;", td)
res = @test strip(out) == "Banner of ModB" broken=VERSION>=v"1.11.0-DEV"
if res == Test.Fail
if res isa Test.Fail
println("out\n$out")
println("err\n$err")
end

# Banner does not show when our module is a dependency
out, err = run_repl_code("using ModC;", td)
res = @test strip(out) == "" broken=VERSION>=v"1.11.0-DEV"
if res == Test.Fail
if res isa Test.Fail
println("out\n$out")
println("err\n$err")
end
Expand Down

0 comments on commit 121936d

Please sign in to comment.