From c8ab83d2bb117c3b737758b0c04ab9f4321badd7 Mon Sep 17 00:00:00 2001 From: Peter Levine Date: Tue, 8 Oct 2024 04:21:39 -0400 Subject: [PATCH] dev-cpp/gtest: use CMAKE_SKIP_TESTS to filter tests Signed-off-by: Peter Levine Signed-off-by: Florian Schmaus --- dev-cpp/gtest/gtest-9999.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dev-cpp/gtest/gtest-9999.ebuild b/dev-cpp/gtest/gtest-9999.ebuild index b0cdccd02275f..f86a47387a97c 100644 --- a/dev-cpp/gtest/gtest-9999.ebuild +++ b/dev-cpp/gtest/gtest-9999.ebuild @@ -34,6 +34,9 @@ RESTRICT="!test? ( test )" BDEPEND="test? ( ${PYTHON_DEPS} )" +# Exclude tests that fail with FEATURES="usersandbox" +CMAKE_SKIP_TESTS=( "googletest-(death-test|port)-test" ) + pkg_setup() { use test && python-any-r1_pkg_setup } @@ -61,11 +64,6 @@ multilib_src_configure() { cmake_src_configure } -multilib_src_test() { - # Exclude tests that fail with FEATURES="usersandbox" - cmake_src_test -E "googletest-(death-test|port)-test" -} - multilib_src_install_all() { einstalldocs