Skip to content

Commit

Permalink
add test and fight with fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
vovw committed Jan 21, 2025
1 parent e970391 commit d2bbd56
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,12 @@ end
@test Array(a)[] == 1
end
end

@testset "error handling" begin
function failing_kernel()
x = unsafe_load(Ptr{Int}(0))
return nothing
end

@test_logs (:error, r"GPU kernel execution failed") @metal failing_kernel()
end

0 comments on commit d2bbd56

Please sign in to comment.