From 2320e195204a0d02aa1dea45c1238bfbfbe0fd6c Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Tue, 3 May 2022 20:28:25 +0200 Subject: [PATCH] Disable unit test on GCC 8.1 The invoke implemenation does not compile on GCC 8.1.0. --- tests/src/unit-apply.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/unit-apply.cpp b/tests/src/unit-apply.cpp index 9486eae72..919a4eb5f 100644 --- a/tests/src/unit-apply.cpp +++ b/tests/src/unit-apply.cpp @@ -1,3 +1,6 @@ +// invoke implementation fails to compile on GCC 8.1 (MinGW); exclude the whole test +#if !defined(__GNUC__) || (defined (__GNUC__) && !(__GNUC__ == 8 && __GNUC_MINOR__ == 1)) + #include "doctest_compatibility.h" DOCTEST_CLANG_SUPPRESS_WARNING_PUSH @@ -657,3 +660,5 @@ TEST_CASE("apply*() functions") DOCTEST_CLANG_SUPPRESS_WARNING_POP DOCTEST_GCC_SUPPRESS_WARNING_POP DOCTEST_MSVC_SUPPRESS_WARNING_POP + +#endif