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

@@ -119,8 +119,8 @@ PARAM_TEST_CASE(PyrDown, MatType, bool)
val = cv::Scalar(rng.uniform(-10.0, 10.0), rng.uniform(-10.0, 10.0), rng.uniform(-10.0, 10.0), rng.uniform(-10.0, 10.0));
//int devnums = getDevice(oclinfo);
//CV_Assert(devnums > 0);
int devnums = getDevice(oclinfo);
CV_Assert(devnums > 0);
//if you want to use undefault device, set it here
//setDevice(oclinfo[0]);
}