Skip to content

Commit

Permalink
LinearAlgebra/qr: Stop trying to factorize uninitialized memory (Juli…
Browse files Browse the repository at this point in the history
…aLang#46386)

It's fine for the test as is, but msan won't like this when enabled,
just use a random matrix rather than an uninitialized one.
  • Loading branch information
Keno authored Aug 18, 2022
1 parent 1040707 commit 330ddfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LinearAlgebra/test/qr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ end
end

@testset "Issue 16520" begin
@test_throws DimensionMismatch Matrix{Float64}(undef,3,2)\(1:5)
@test_throws DimensionMismatch rand(3,2)\(1:5)
end

@testset "Issue 22810" begin
Expand Down

0 comments on commit 330ddfc

Please sign in to comment.