File: 0004-Skip-test-failing-on-32-bit-architectures.patch

package info (click to toggle)
php-phpseclib3 3.0.19-1%2Bdeb12u3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,136 kB
  • sloc: php: 29,413; xml: 393; makefile: 20
file content (24 lines) | stat: -rw-r--r-- 909 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Fri, 26 Nov 2021 11:42:09 -0400
Subject: Skip test failing on 32-bit architectures

To be investigated
---
 tests/Unit/Math/BigInteger/TestCase.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php
index c19320f..bfc97d3 100644
--- a/tests/Unit/Math/BigInteger/TestCase.php
+++ b/tests/Unit/Math/BigInteger/TestCase.php
@@ -329,6 +329,10 @@ abstract class TestCase extends PhpseclibTestCase
      */
     public function testDiffieHellmanKeyAgreement()
     {
+        if (PHP_INT_SIZE == 4) {
+            self::markTestSkipped('This test currently fails on 32-bit architectures.');
+        }
+
         // "Oakley Group 14" 2048-bit modular exponentiation group as used in
         // SSH2 diffie-hellman-group14-sha1
         $prime = $this->getInstance(