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 27 28 29 30 31 32 33 34
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Sun, 24 Aug 2025 23:27:54 +0200
Subject: Drop tests failing on 32-bit architectures
---
tests/Php82/Php82Test.php | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/Php82/Php82Test.php b/tests/Php82/Php82Test.php
index e5ce7a7..caa0e15 100644
--- a/tests/Php82/Php82Test.php
+++ b/tests/Php82/Php82Test.php
@@ -219,6 +219,10 @@ class Php82Test extends TestCase
$this->assertSame(1073741824, ini_parse_quantity('+1g'));
$this->assertSame(-1073741824, ini_parse_quantity('-1G'));
+ if (\PHP_INT_SIZE === 4) {
+ self::markTestSkipped('Failing test on 32-bit architecture');
+ }
+
$this->assertSame(2147483648, ini_parse_quantity('0b10g'));
$this->assertSame(2147483648, ini_parse_quantity('0b10 G'));
$this->assertSame(2147483648, ini_parse_quantity('+0b10g'));
@@ -326,6 +330,10 @@ class Php82Test extends TestCase
public function testIniParseQuantityOverflowWithMultiplier()
{
+ if (\PHP_INT_SIZE === 4) {
+ self::markTestSkipped('Failing test on 32-bit architecture');
+ }
+
error_clear_last();
$this->assertSame(-7709325833709551616, @ini_parse_quantity(' 10000000000G '));
$this->assertSame('Invalid quantity " 10000000000G ": value is out of range, using overflow result for backwards compatibility', error_get_last()['message']);
|