File: 0006-Skip-test-failing-on-32-bits-architectures.patch

package info (click to toggle)
php-phpseclib 2.0.49-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,744 kB
  • sloc: php: 11,989; sh: 66; xml: 49; makefile: 23
file content (22 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Mon, 12 Sep 2022 07:24:43 -0400
Subject: Skip test failing on 32-bits architectures

---
 tests/Unit/Crypt/BlowfishTest.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/Unit/Crypt/BlowfishTest.php b/tests/Unit/Crypt/BlowfishTest.php
index e9bb4c8..c9bbf6e 100644
--- a/tests/Unit/Crypt/BlowfishTest.php
+++ b/tests/Unit/Crypt/BlowfishTest.php
@@ -74,6 +74,9 @@ class Unit_Crypt_BlowfishTest extends PhpseclibTestCase
      */
     public function testVectors($engine, $engineName, $key, $plaintext, $expected)
     {
+        if (PHP_INT_SIZE == 4) {
+            self::markTestSkipped('Skip test failing on 32-bit architectures');
+        }
         $bf = new Blowfish();
         $bf->setKey($key);
         if (!$bf->isValidEngine($engine)) {