Skip to content

Commit 08d2ede

Browse files
committed
attempt to avoid segfault from long tests
1 parent b29bb97 commit 08d2ede

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/distributions.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,14 @@ separator()
532532

533533
@testset "Matrix-variate continuous distributions" begin
534534
test_head("Testing: Matrix-variate continuous distributions")
535-
for d in xmatrix_cont_dists
535+
n = length(xmulti_disc_dists)
536+
for d in xmatrix_cont_dists[1:div(n,2)]
537+
test_info(d.name)
538+
for testf in get_all_functions(d, true)
539+
test_ad(testf.f, testf.x)
540+
end
541+
end
542+
for d in xmatrix_cont_dists[div(n,2)+1:end]
536543
test_info(d.name)
537544
for testf in get_all_functions(d, true)
538545
test_ad(testf.f, testf.x)

0 commit comments

Comments
 (0)