diff --git a/test/linalg/lapack.jl b/test/linalg/lapack.jl index 7596c050484f3..4667b094c95ad 100644 --- a/test/linalg/lapack.jl +++ b/test/linalg/lapack.jl @@ -425,13 +425,15 @@ end @testset "sysv" begin @testset for elty in (Float32, Float64, Complex64, Complex128) - A = rand(elty,10,10) - A = A + A.' #symmetric! - b = rand(elty,10) - c = A \ b - b,A = LAPACK.sysv!('U',A,b) - @test b ≈ c - @test_throws DimensionMismatch LAPACK.sysv!('U',A,rand(elty,11)) + guardsrand(123) do + A = rand(elty,10,10) + A = A + A.' #symmetric! + b = rand(elty,10) + c = A \ b + b,A = LAPACK.sysv!('U',A,b) + @test b ≈ c + @test_throws DimensionMismatch LAPACK.sysv!('U',A,rand(elty,11)) + end end end