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