Skip to content

Commit

Permalink
Make back-end test check more robust.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Sep 9, 2024
1 parent 462556f commit eae3030
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/event.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if backend in ["POCL", "Intel"]
if backend in ["pocl", "intel"]
# unsupported by POCL
# hangs on Intel
@warn "Skipping event tests"
Expand Down
2 changes: 1 addition & 1 deletion test/program.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
@test prg[:source] == test_source
end

if backend == "POCL"
if backend == "pocl"
@warn "Skipping binary program tests"
else
@testset "binaries" begin
Expand Down
4 changes: 2 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Test
using OpenCL

backend = get(ENV, "JULIA_OPENCL_BACKEND", "POCL")
if backend == "POCL"
backend = lowercase(get(ENV, "JULIA_OPENCL_BACKEND", "pocl"))
if backend == "pocl"
using pocl_jll
end
cl.platform!(backend)
Expand Down

0 comments on commit eae3030

Please sign in to comment.