From 779e65f4497e06a5ce259a2fbd2b30dc36e7e913 Mon Sep 17 00:00:00 2001 From: Milan Bouchet-Valat Date: Tue, 25 Apr 2017 13:40:56 +0200 Subject: [PATCH] Disable FFT plan check with FFTW < 3.3.4 fftw_sprint_plan wasn't available in FFTW 3.3.3. Hence show of a plan in FFTW 3.3.3 doesn't actually show the plan contents and the test will fail. --- test/fft.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/fft.jl b/test/fft.jl index 0e673ab40d2d1..63a1a2440e031 100644 --- a/test/fft.jl +++ b/test/fft.jl @@ -8,8 +8,10 @@ let a = randn(10^5,1), p1 = plan_rfft(a, flags=FFTW.ESTIMATE) @test p1*a ≈ p2*a # make sure threads are actually being used for p2 # (tests #21163). - @test !contains(string(p1), "dft-thr") - @test contains(string(p2), "dft-thr") + if FFTW.version >= v"3.3.4" + @test !contains(string(p1), "dft-thr") + @test contains(string(p2), "dft-thr") + end end # fft