some minor modifications to the b2g cuda tests

remotes/origin/master-1.0.x
Anoop Saldanha 15 years ago committed by Victor Julien
parent c25921edf0
commit ce4bc5a63b

@ -2552,12 +2552,12 @@ static int B2gCudaTest02(void)
B2gCudaMpmThreadCtxData *b2g_tctx = NULL;
B2gCudaMpmDispThreadInit(NULL, module_data, (void *)&b2g_tctx);
if (b2g_tctx->b2g_cuda_context == 0)
goto end;
if (b2g_tctx->b2g_cuda_module == 0)
goto end;
if (b2g_tctx->b2g_cuda_search_kernel == 0)
if (b2g_tctx->b2g_cuda_context == 0 ||
b2g_tctx->b2g_cuda_module == 0 ||
b2g_tctx->b2g_cuda_search_kernel == 0) {
result = 0;
goto end;
}
B2gCudaMpmDispatcher(NULL, (Packet *)pb, b2g_tctx, NULL, NULL);
@ -2852,12 +2852,12 @@ static int B2gCudaTest03(void)
B2gCudaMpmThreadCtxData *b2g_tctx = NULL;
B2gCudaMpmDispThreadInit(NULL, module_data, (void *)&b2g_tctx);
if (b2g_tctx->b2g_cuda_context == 0)
goto end;
if (b2g_tctx->b2g_cuda_module == 0)
goto end;
if (b2g_tctx->b2g_cuda_search_kernel == 0)
if (b2g_tctx->b2g_cuda_context == 0 ||
b2g_tctx->b2g_cuda_module == 0 ||
b2g_tctx->b2g_cuda_search_kernel == 0) {
result = 0;
goto end;
}
B2gCudaMpmDispatcher(NULL, (Packet *)pb, b2g_tctx, NULL, NULL);

Loading…
Cancel
Save