Skip to content

Commit

Permalink
Don't return from within testset.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Mar 18, 2020
1 parent e9e7cbd commit fea5135
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/memory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
CuArrays.reclaim(1024)
CuArrays.reclaim()

@test CuArrays.@retry_reclaim(42, return 42) == 42
@test CuArrays.@retry_reclaim(42, return 41) == 41
@test CuArrays.@retry_reclaim(42, 42) == 42
@test CuArrays.@retry_reclaim(42, 41) == 41

@test_throws OutOfGPUMemoryError CuArray{Int}(undef, 10^20)
@test_throws OutOfGPUMemoryError CuArrays.extalloc() do
CuArray{Int}(undef, 10^20)
end

end

0 comments on commit fea5135

Please sign in to comment.