Skip to content

Commit 277d963

Browse files
committed
restrict allocs test to 1.12, display env info
1 parent ef6fb83 commit 277d963

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/runtests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ const CIENV = get(ENV, "CI", "") == "true"
1717
"are we testing for allocations (coverage does not interfere)"
1818
const ALLOCS = get(ENV, "BUILD_IS_PRODUCTION_BUILD", "false") == "true"
1919

20+
@info "test environment" CIENV ALLOCS
21+
2022
include("utilities.jl")
2123

2224
Random.seed!(1)
@@ -826,7 +828,7 @@ end
826828
# allocations
827829
t7 = corr_cholesky_factor(SMatrix{7,7})
828830
z7 = zeros(dimension(t7))
829-
ALLOCS && @test iszero(((t, z) -> @allocations(transform(t, z)))(t7, z7))
831+
VERSION v"1.12" && ALLOCS && @test iszero(((t, z) -> @allocations(transform(t, z)))(t7, z7))
830832
end
831833

832834
@testset "corr cholesky factor large inputs" begin

0 commit comments

Comments
 (0)