mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
skip OCL tests if OpenCL isn't available
This commit is contained in:
@@ -282,7 +282,8 @@ TEST_F(SuperResolution, BTVL1_CUDA)
|
||||
|
||||
TEST_F(SuperResolution, BTVL1_OCL)
|
||||
{
|
||||
RunTest(cv::superres::createSuperResolution_BTVL1_OCL());
|
||||
if (cv::ocl::useOpenCL())
|
||||
RunTest(cv::superres::createSuperResolution_BTVL1_OCL());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user