diff --git a/test/ParallelKernel/test_allocators.jl b/test/ParallelKernel/test_allocators.jl index b58d3212..cc982fee 100644 --- a/test/ParallelKernel/test_allocators.jl +++ b/test/ParallelKernel/test_allocators.jl @@ -22,7 +22,15 @@ end @static if PKG_METAL in TEST_PACKAGES import Metal if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end - @define_MtlCellArray +end +@static if PKG_METAL in TEST_PACKAGES + @static if Sys.isapple() + import Metal + if !Metal.functional() TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) end + @define_MtlCellArray + else + TEST_PACKAGES = filter!(x->x≠PKG_METAL, TEST_PACKAGES) + end end @static if PKG_POLYESTER in TEST_PACKAGES import Polyester