Skip to content

SkipTestException is not handled in CUDA tests #24002

@cudawarped

Description

@cudawarped

System Information

OpenCV version: 4.8.0

Detailed description

As observed in opencv/opencv_contrib#3477 when a SkipTestException is thrown the test is incorrectly marked as failed.

It look like all that is required to fix this is updating the definition of GTEST_TEST_CLASS_NAME_(test_case_name, test_name)::TestBody() to handle this type of exception in the same way as CV__TEST_BODY_IMPL(name) does.

Steps to reproduce

Throw a SkipTestException anywhere in a CUDA test.

Issue submission checklist

  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files (videos, images, onnx, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions