From 0594d390feeaa9892a040ca71dc5c6a3618b4f0c Mon Sep 17 00:00:00 2001 From: Nicole Cordes <typo3@cordes.co> Date: Fri, 30 Jan 2015 17:15:15 +0100 Subject: [PATCH] [BUGFIX] Failing unit test in Dbal\DatabaseConnectionTest There is one test to be sure 64bit integer values are stored correctly in the database. This test obviously has to fail on 32bit systems as they can't handle 64bit values. The patch disables the test for unsupported systems. Releases: master, 6.2 Resolves: #64651 Change-Id: I4f1047c19f4ba79df79ffdc92e38fb4f151d0add Reviewed-on: http://review.typo3.org/36447 Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php b/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php index 860eb0656c0b..25e5c23423ee 100644 --- a/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php +++ b/typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php @@ -150,6 +150,9 @@ class DatabaseConnectionTest extends AbstractTestCase { * @see http://forge.typo3.org/issues/20427 */ public function positive64BitIntegerIsSupported() { + if (!is_int(9223372036854775806)) { + $this->markTestSkipped('Test skipped because running on 32 bit system.'); + } $this->createFakeExtension(' CREATE TABLE tx_test_dbal ( foo int default \'0\', -- GitLab