Skip to content

Commit 156fd64

Browse files
committed
Mark allocation tests as broken since Julia 1.9
1 parent 8279653 commit 156fd64

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

test/AllocationsTest.jl

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,34 @@ convert_test_574() = convert(ForwardDiff.Dual{Nothing,ForwardDiff.Dual{Nothing,F
1919

2020
alloc = @allocated ForwardDiff.seed!(duals, x, seed)
2121
alloc = @allocated ForwardDiff.seed!(duals, x, seed)
22-
@test alloc == 0
22+
if VERSION < v"1.9"
23+
@test alloc == 0
24+
else
25+
@test_broken alloc == 0
26+
end
2327

2428
index = 1
2529
alloc = @allocated ForwardDiff.seed!(duals, x, index, seeds)
2630
alloc = @allocated ForwardDiff.seed!(duals, x, index, seeds)
27-
@test alloc == 0
31+
if VERSION < v"1.9"
32+
@test alloc == 0
33+
else
34+
@test_broken alloc == 0
35+
end
2836

2937
index = 1
3038
alloc = @allocated ForwardDiff.seed!(duals, x, index, seed)
3139
alloc = @allocated ForwardDiff.seed!(duals, x, index, seed)
32-
@test alloc == 0
33-
40+
if VERSION < v"1.9"
41+
@test alloc == 0
42+
else
43+
@test_broken alloc == 0
44+
end
45+
3446
alloc = @allocated convert_test_574()
3547
alloc = @allocated convert_test_574()
3648
@test alloc == 0
37-
49+
3850
end
3951

4052
end

0 commit comments

Comments
 (0)