Skip to content

Commit

Permalink
Mark effects tests as known broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Seelengrab committed Jan 8, 2024
1 parent d15989b commit abc676a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,12 @@ end
@test isempty(JET.get_reports(res))
end
effects = Base.infer_effects(foldableAccess, (JETStruct,))
@test Core.Compiler.is_foldable(effects)
@static if VERSION >= v"1.10"
# see https://github.com/JuliaLang/julia/issues/49978 for why this is needed...
@test_broken Core.Compiler.is_foldable(effects)
else
@test Core.Compiler.is_foldable(effects)
end
@inferred Bool foldableAccess(JETStruct(true, false))
end
@testset "erroringAccess" begin
Expand Down Expand Up @@ -361,7 +366,12 @@ end
@test isempty(JET.get_reports(res))
end
effects = Base.infer_effects(foldableFields, (FieldsField,))
@test Core.Compiler.is_foldable(effects)
@static if VERSION >= v"1.10"
# see https://github.com/JuliaLang/julia/issues/49978 for why this is needed...
@test_broken Core.Compiler.is_foldable(effects)
else
@test Core.Compiler.is_foldable(effects)
end
@inferred Bool foldableFields(FieldsField(true))
end
end
Expand Down Expand Up @@ -405,4 +415,5 @@ end
@test obj.e isa UInt64
@test obj.f isa UInt128
end

end # end All Tests

0 comments on commit abc676a

Please sign in to comment.