File: 0011-Fix-testRevision-testcase.patch

package info (click to toggle)
jruby 9.4.8.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 89,244 kB
  • sloc: ruby: 548,574; java: 276,189; yacc: 25,873; ansic: 6,178; xml: 6,111; sh: 1,855; sed: 94; makefile: 78; jsp: 48; tcl: 40; exp: 12
file content (26 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Wed, 16 Nov 2022 08:32:17 -0500
Subject: Fix testRevision testcase

Upstream expects revision numbers to consist of a partial git commit id,
however we define it as the Debian package version, so it length may
vary.

Forwarded: not-needed
---
 core/src/test/java/org/jruby/test/TestRuby.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/test/java/org/jruby/test/TestRuby.java b/core/src/test/java/org/jruby/test/TestRuby.java
index 70b1fbc..c8d4e12 100644
--- a/core/src/test/java/org/jruby/test/TestRuby.java
+++ b/core/src/test/java/org/jruby/test/TestRuby.java
@@ -198,7 +198,7 @@ public class TestRuby extends Base {
 
     // Test that the revision is being populated correctly. jruby/jruby#6090
     public void testRevision() {
-        assertTrue(Constants.REVISION.length() == 40);
+        // assertTrue(Constants.REVISION.length() == 40);
         assertFalse(Constants.REVISION.equals(Constants.BOGUS_REVISION));
     }
 }