diff --git a/modules/ts/include/opencv2/ts/cuda_test.hpp b/modules/ts/include/opencv2/ts/cuda_test.hpp index 87b217fc13..73e8f8ba84 100644 --- a/modules/ts/include/opencv2/ts/cuda_test.hpp +++ b/modules/ts/include/opencv2/ts/cuda_test.hpp @@ -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(); \