diff --git a/test/runtests.jl b/test/runtests.jl index f602ab8..204392b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -508,6 +508,11 @@ let A = rand(Float32, 35), Ac = rand(Complex{Float32}, 35) @test Yc[io] ≈ fft(Ac[ii]) end end - @test_throws ArgumentError plan_rfft(Array{Float32}(undef, 32)) * view(A, 2:33) - @test_throws ArgumentError plan_fft(Array{Complex{Float32}}(undef, 32)) * view(Ac, 2:33) + + # check whether FFTW on this architecture has nontrivial alignment requirements + nontrivial_alignment = FFTW.fftw_vendor == :fftw && ccall((:fftwf_alignment_of, FFTW.libfftw3f), Int32, (Int,), 8) != 0 + if nontrivial_alignment + @test_throws ArgumentError plan_rfft(Array{Float32}(undef, 32)) * view(A, 2:33) + @test_throws ArgumentError plan_fft(Array{Complex{Float32}}(undef, 32)) * view(Ac, 2:33) + end end