mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Merge pull request #24003 from cudawarped:cuda_fix_skip_test_exception
`cuda`: add SkipTestException handling
This commit is contained in:
commit
1f82550cc8
@ -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