From 7726cecbaadd133aa10ce3bd8435ee3beadbfeff Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 7 Feb 2014 15:06:43 +0100 Subject: [PATCH] Fix CUDA test warning. --- src/util-cuda-buffer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util-cuda-buffer.c b/src/util-cuda-buffer.c index cb3c51df9e..efaef9ffa9 100644 --- a/src/util-cuda-buffer.c +++ b/src/util-cuda-buffer.c @@ -885,8 +885,11 @@ int CudaBufferTest03(void) } slice = CudaBufferGetSlice(data, 16, NULL); + BUG_ON(slice == NULL); slice = CudaBufferGetSlice(data, 16, NULL); + BUG_ON(slice == NULL); slice = CudaBufferGetSlice(data, 24, NULL); + BUG_ON(slice == NULL); /* culling */ CudaBufferCulledInfo culled_info;