Skip to content

Commit 96808ca

Browse files
vovwmaleadt
authored andcommitted
add test and fight with fmt
1 parent be41ab8 commit 96808ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/execution.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,12 @@ end
260260
@test Array(a)[] == 1
261261
end
262262
end
263+
264+
@testset "error handling" begin
265+
function failing_kernel()
266+
x = unsafe_load(Ptr{Int}(0))
267+
return nothing
268+
end
269+
270+
@test_logs (:error, r"GPU kernel execution failed") @metal failing_kernel()
271+
end

0 commit comments

Comments
 (0)