From 897aad8586f359339a696ed7145349e19e97a293 Mon Sep 17 00:00:00 2001 From: Joe Greener Date: Tue, 8 Aug 2023 23:50:30 +0100 Subject: [PATCH] Mark try test as broken on Julia 1.6 --- test/runtests.jl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 1122b8ff94..6ca4593a20 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -434,8 +434,14 @@ end return 2x end end - @test autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2 - @test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2 + # Gives 0.0 on Julia 1.6, see #971 + @static if VERSION ≥ v"1.7-" + @test autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2 + @test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2 + else + @test_broken autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2 + @test_broken autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2 + end println("Done 25") f26(x) = circshift([1.0, 2x, 3.0], 1)[end]