From e00c90458536d349f003226f3711d7dec299d600 Mon Sep 17 00:00:00 2001 From: cudawarped <12133430+cudawarped@users.noreply.github.com> Date: Mon, 17 Jul 2023 18:03:09 +0300 Subject: [PATCH] cuda: add SkipTestException handling --- modules/ts/include/opencv2/ts/cuda_test.hpp | 5 +++++ 1 file changed, 5 insertions(+) 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(); \