From 26365beef1480deb94691e119f772f9e82050553 Mon Sep 17 00:00:00 2001 From: Andreas Noack Date: Tue, 17 Jun 2025 22:12:29 +0200 Subject: [PATCH] Also test zero allocations on 1.10 It looks like the issues has been fixed in a patch release --- test/AllocationsTest.jl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/AllocationsTest.jl b/test/AllocationsTest.jl index ad1832d0..9b20fb60 100644 --- a/test/AllocationsTest.jl +++ b/test/AllocationsTest.jl @@ -24,20 +24,12 @@ convert_test_574() = convert(ForwardDiff.Dual{Nothing,ForwardDiff.Dual{Nothing,F index = 1 alloc = @allocated ForwardDiff.seed!(duals, x, index, seeds) alloc = @allocated ForwardDiff.seed!(duals, x, index, seeds) - if VERSION < v"1.9" || VERSION >= v"1.11" - @test alloc == 0 - else - @test_broken alloc == 0 - end + @test alloc == 0 index = 1 alloc = @allocated ForwardDiff.seed!(duals, x, index, seed) alloc = @allocated ForwardDiff.seed!(duals, x, index, seed) - if VERSION < v"1.9" || VERSION >= v"1.11" - @test alloc == 0 - else - @test_broken alloc == 0 - end + @test alloc == 0 alloc = @allocated convert_test_574() alloc = @allocated convert_test_574()