1
0
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:
Ilya Lavrenov
2014-01-20 17:52:32 +04:00
parent 07e08f7a3d
commit ac2e613975
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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