Skip to content

Commit

Permalink
fixup! Add test coverge for clCloneKernel with SVM pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
jainvikas8 committed Aug 19, 2021
1 parent 1a825a0 commit 40aed32
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test_conformance/api/test_clone_kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,9 +888,13 @@ int test_cloned_kernel_svm_ptr(cl_device_id deviceID, cl_context context,
"retry.\n");
}
clSVMFree(context, svmPtr_cloneKernel_2);
}

return TEST_PASS;
return TEST_PASS;
}
else
{
return TEST_SKIPPED_ITSELF;
}
}

int test_clone_kernel(cl_device_id deviceID, cl_context context,
Expand Down Expand Up @@ -919,7 +923,8 @@ int test_clone_kernel(cl_device_id deviceID, cl_context context,
test_fail("clCloneKernel test_cloned_kernel_empty_args failed.\n");
}

if (test_cloned_kernel_svm_ptr(deviceID, context, queue, num_elements) != 0)
if (test_cloned_kernel_svm_ptr(deviceID, context, queue, num_elements)
== TEST_FAIL)
{
test_fail("clCloneKernel test_cloned_kernel_svm_ptr failed.\n");
}
Expand Down

0 comments on commit 40aed32

Please sign in to comment.