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

View File

@@ -49,22 +49,16 @@
#ifdef HAVE_OPENCL
PARAM_TEST_CASE(PyrUp,cv::Size,int)
{
cv::Size size;
int type;
std::vector<cv::ocl::Info> oclinfo;
virtual void SetUp()
{
int devnums = cv::ocl::getDevice(oclinfo, OPENCV_DEFAULT_OPENCL_DEVICE);
CV_Assert(devnums > 0);
size = GET_PARAM(0);
type = GET_PARAM(1);
}