Skip to content

Commit

Permalink
Skip or loosen two errorshow tests on 32-bit Windows (#56837)
Browse files Browse the repository at this point in the history
Ref #55900.
  • Loading branch information
DilumAluthge authored Dec 15, 2024
1 parent 06f988b commit 006f19c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/errorshow.jl
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,22 @@ backtrace()
@test occursin("g28442", output[3])
@test lstrip(output[5])[1:3] == "[2]"
@test occursin("f28442", output[5])
@test occursin("the above 2 lines are repeated 5000 more times", output[7])
@test lstrip(output[8])[1:7] == "[10003]"
is_windows_32_bit = Sys.iswindows() && (Sys.WORD_SIZE == 32)
if is_windows_32_bit
# These tests are currently broken (intermittently/non-determistically) on 32-bit Windows.
# https://github.com/JuliaLang/julia/issues/55900
# Instead of skipping them entirely, we skip one, and we loosen the other.

# Broken test: @test occursin("the above 2 lines are repeated 5000 more times", output[7])
@test occursin("the above 2 lines are repeated ", output[7])
@test occursin(" more times", output[7])

# Broken test: @test lstrip(output[8])[1:7] == "[10003]"
@test_broken false
else
@test occursin("the above 2 lines are repeated 5000 more times", output[7])
@test lstrip(output[8])[1:7] == "[10003]"
end
end

@testset "Line number correction" begin
Expand Down

0 comments on commit 006f19c

Please sign in to comment.