ocl: correct disabling of OpenCL code
This commit is contained in:
@@ -691,6 +691,7 @@ INSTANTIATE_TEST_CASE_P(UMat, getUMat, Combine(
|
||||
|
||||
///////////////////////////////////////////////////////////////// OpenCL ////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef HAVE_OPENCL
|
||||
TEST(UMat, BufferPoolGrowing)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
@@ -716,6 +717,7 @@ TEST(UMat, BufferPoolGrowing)
|
||||
else
|
||||
std::cout << "Skipped, no OpenCL" << std::endl;
|
||||
}
|
||||
#endif
|
||||
|
||||
class CV_UMatTest :
|
||||
public cvtest::BaseTest
|
||||
@@ -956,6 +958,10 @@ TEST(UMat, CopyToIfDeviceCopyIsObsolete)
|
||||
|
||||
TEST(UMat, setOpenCL)
|
||||
{
|
||||
#ifndef HAVE_OPENCL
|
||||
return; // test skipped
|
||||
#endif
|
||||
|
||||
// save the current state
|
||||
bool useOCL = cv::ocl::useOpenCL();
|
||||
|
||||
|
Reference in New Issue
Block a user