From 97360301ebcc776a6ed91fa8f41ae8b03174d057 Mon Sep 17 00:00:00 2001 From: Timur Izmajlov Date: Thu, 20 Aug 2026 15:38:15 +0200 Subject: [PATCH] gapi(test): narrow down failure condition to GCC 11.0 - 11.1 * The condition under which the test `AsyncAPICancelation/cancel/0.basic` doesn't compile using GCC 11 is narrowed down to the only GCC versions which are affected: GCC 11.0 and 11.1. The issue was fixed in GCC 11.2 (verified using 11.2.0, 11.3.0, 11.4.0, 11.5.0, 12.1.0 versions of GCC). * The corresponding issue: opencv/opencv#19678. --- modules/gapi/test/gapi_async_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gapi/test/gapi_async_test.cpp b/modules/gapi/test/gapi_async_test.cpp index e510526def..1784098c74 100644 --- a/modules/gapi/test/gapi_async_test.cpp +++ b/modules/gapi/test/gapi_async_test.cpp @@ -359,9 +359,9 @@ TYPED_TEST_CASE_P(cancel); TYPED_TEST_P(cancel, basic) { -#if defined(__GNUC__) && __GNUC__ == 11 +#if defined(__GNUC__) && __GNUC__ == 11 && __GNUC_MINOR__ < 2 // std::vector requests can't handle type with ctor parameter (SelfCanceling) - FAIL() << "Test code is not available due to compilation error with GCC 11"; + FAIL() << "Test code is not available due to compilation error with GCC 11.0 - 11.1"; #else constexpr int num_tasks = 100; cancel_struct cancel_struct_ {num_tasks};