1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

fix bugs in tests, set device for each test case

Signed-off-by: yao <bitwangyaoyao@gmail.com>
This commit is contained in:
yao
2012-08-06 15:51:27 +08:00
parent 505cda43d1
commit 7d97e8112a
5 changed files with 17 additions and 13 deletions
+3
View File
@@ -60,11 +60,14 @@ PARAM_TEST_CASE(ColumnSum, cv::Size, bool )
cv::Size size;
cv::Mat src;
bool useRoi;
std::vector<cv::ocl::Info> oclinfo;
virtual void SetUp()
{
size = GET_PARAM(0);
useRoi = GET_PARAM(1);
int devnums = getDevice(oclinfo, OPENCV_DEFAULT_OPENCL_DEVICE);
CV_Assert(devnums > 0);
}
};