commit:     a84b2faf0da902cf21bb9722f05ecf54e032ac3a
Author:     Matthew S. Turnbull <sparky <AT> bluefang-logic <DOT> com>
AuthorDate: Sun Jun  6 06:23:28 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jun  8 07:34:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a84b2faf

gnome-extra/cjs: fix failing test

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Matthew S. Turnbull <sparky <AT> bluefang-logic.com>
Closes: https://github.com/gentoo/gentoo/pull/21047
Signed-off-by: Sam James <sam <AT> gentoo.org>

 gnome-extra/cjs/cjs-5.0.0.ebuild               |  4 ++++
 gnome-extra/cjs/files/cjs-5.0.0-fix-test.patch | 24 ++++++++++++++++++++++++
 2 files changed, 28 insertions(+)

diff --git a/gnome-extra/cjs/cjs-5.0.0.ebuild b/gnome-extra/cjs/cjs-5.0.0.ebuild
index 59ef8a7d5a6..b6ffaef22ef 100644
--- a/gnome-extra/cjs/cjs-5.0.0.ebuild
+++ b/gnome-extra/cjs/cjs-5.0.0.ebuild
@@ -39,6 +39,10 @@ BDEPEND="
        virtual/pkgconfig
 "
 
+PATCHES=(
+       "${FILESDIR}/${PN}-5.0.0-fix-test.patch"
+)
+
 src_prepare() {
        default
        python_fix_shebang build

diff --git a/gnome-extra/cjs/files/cjs-5.0.0-fix-test.patch 
b/gnome-extra/cjs/files/cjs-5.0.0-fix-test.patch
new file mode 100644
index 00000000000..347ca090782
--- /dev/null
+++ b/gnome-extra/cjs/files/cjs-5.0.0-fix-test.patch
@@ -0,0 +1,24 @@
+From ac2737f524b4d667a7700b8ff077cd603ee21c59 Mon Sep 17 00:00:00 2001
+From: Eli Schwartz <[email protected]>
+Date: Thu, 3 Jun 2021 05:21:51 -0400
+Subject: [PATCH] fix failing test checking for version number (#94)
+
+---
+ installed-tests/js/testSystem.js | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/installed-tests/js/testSystem.js 
b/installed-tests/js/testSystem.js
+index a4c098c0..8ae8c74a 100644
+--- a/installed-tests/js/testSystem.js
++++ b/installed-tests/js/testSystem.js
+@@ -11,8 +11,8 @@ describe('System.addressOf()', function () {
+ 
+ describe('System.version', function () {
+     it('gives a plausible number', function () {
+-        expect(System.version).not.toBeLessThan(14700);
+-        expect(System.version).toBeLessThan(50000);
++        expect(System.version).not.toBeLessThan(40802);
++        expect(System.version).toBeLessThan(60000);
+     });
+ });
+ 

Reply via email to