commit:     4ee090471c57f217670048c26980ba4ebc54f819
Author:     sin-ack <sin-ack <AT> protonmail <DOT> com>
AuthorDate: Wed Nov 13 00:06:43 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 23 14:00:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee09047

dev-cpp/edencommon: skip a test with GCC 13

There seems to be some optimization-related assumptions in this test
which doesn't happen on GCC 13.

Signed-off-by: sin-ack <sin-ack <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39296
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-cpp/edencommon/edencommon-2024.11.04.00.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/dev-cpp/edencommon/edencommon-2024.11.04.00.ebuild 
b/dev-cpp/edencommon/edencommon-2024.11.04.00.ebuild
index c53780c9b1f9..203196b92ee9 100644
--- a/dev-cpp/edencommon/edencommon-2024.11.04.00.ebuild
+++ b/dev-cpp/edencommon/edencommon-2024.11.04.00.ebuild
@@ -13,7 +13,7 @@ EAPI=8
 # dev-cpp/wangle
 # dev-util/watchman
 
-inherit cmake
+inherit cmake toolchain-funcs
 
 DESCRIPTION="Shared library for Watchman and Eden projects"
 HOMEPAGE="https://github.com/facebookexperimental/edencommon";
@@ -47,3 +47,15 @@ src_configure() {
 
        cmake_src_configure
 }
+
+src_test() {
+       CMAKE_SKIP_TESTS=()
+
+       # This test fails on GCC 13.
+       # https://github.com/facebookexperimental/edencommon/issues/22
+       if tc-is-gcc && ver_test $(gcc-version) -lt 14.0.0; then
+               CMAKE_SKIP_TESTS+=(PathFuncs.move_or_copy)
+       fi
+
+       cmake_src_test
+}

Reply via email to