commit:     4fcbe8b5d68795e74d2faa4d38bdaf3561e07d98
Author:     Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com>
AuthorDate: Mon Jun 12 11:08:49 2023 +0000
Commit:     Kostadin Shishmanov <kocelfc <AT> tutanota <DOT> com>
CommitDate: Mon Jun 12 11:08:49 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4fcbe8b5

dev-cpp/units: disable failing tests

Closes: https://bugs.gentoo.org/908388
Signed-off-by: Kostadin Shishmanov <kocelfc <AT> tutanota.com>

 dev-cpp/units/files/units-2.3.3-disable-failing-tests.patch | 13 +++++++++++++
 dev-cpp/units/units-2.3.3.ebuild                            |  4 ++++
 2 files changed, 17 insertions(+)

diff --git a/dev-cpp/units/files/units-2.3.3-disable-failing-tests.patch 
b/dev-cpp/units/files/units-2.3.3-disable-failing-tests.patch
new file mode 100644
index 000000000..c14844570
--- /dev/null
+++ b/dev-cpp/units/files/units-2.3.3-disable-failing-tests.patch
@@ -0,0 +1,13 @@
+diff --git a/unitTests/main.cpp b/unitTests/main.cpp
+index 96befa3..73a4d93 100644
+--- a/unitTests/main.cpp
++++ b/unitTests/main.cpp
+@@ -1409,7 +1409,7 @@ TEST_F(UnitContainer, to_string)
+       EXPECT_STREQ("8 m", units::length::to_string(b).c_str());
+ }
+ 
+-TEST_F(UnitContainer, to_string_locale)
++TEST_F(UnitContainer, DISABLED_to_string_locale)
+ {
+       struct lconv * lc;
+ 

diff --git a/dev-cpp/units/units-2.3.3.ebuild b/dev-cpp/units/units-2.3.3.ebuild
index b9d408ae3..69fa8c6ae 100644
--- a/dev-cpp/units/units-2.3.3.ebuild
+++ b/dev-cpp/units/units-2.3.3.ebuild
@@ -16,6 +16,10 @@ KEYWORDS="~amd64"
 IUSE="test"
 RESTRICT="!test? ( test )"
 
+PATCHES=(
+       "${FILESDIR}/${P}-disable-failing-tests.patch"
+)
+
 src_configure() {
        local mycmakeargs+=(
                -DBUILD_TESTS="$(usex test ON OFF)"

Reply via email to