mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
cuda: add SkipTestException handling
This commit is contained in:
parent
1920993525
commit
e00c904585
@ -202,6 +202,11 @@ namespace cvtest
|
|||||||
{ \
|
{ \
|
||||||
UnsafeTestBody(); \
|
UnsafeTestBody(); \
|
||||||
} \
|
} \
|
||||||
|
catch (const cvtest::details::SkipTestExceptionBase& e) \
|
||||||
|
{ \
|
||||||
|
printf("[ SKIP ] %s\n", e.what()); \
|
||||||
|
cv::cuda::resetDevice(); \
|
||||||
|
} \
|
||||||
catch (...) \
|
catch (...) \
|
||||||
{ \
|
{ \
|
||||||
cv::cuda::resetDevice(); \
|
cv::cuda::resetDevice(); \
|
||||||
|
Loading…
Reference in New Issue
Block a user