Merge pull request #24003 from cudawarped:cuda_fix_skip_test_exception

`cuda`: add SkipTestException handling
This commit is contained in:
Alexander Smorkalov 2023-07-18 09:49:20 +03:00 committed by GitHub
commit 1f82550cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(); \