[BUGFIX] Failing unit test in Dbal\DatabaseConnectionTest 52/36452/2
authorNicole Cordes <typo3@cordes.co>
Fri, 30 Jan 2015 16:15:15 +0000 (17:15 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 30 Jan 2015 17:03:16 +0000 (18:03 +0100)
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/36452
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/dbal/Tests/Unit/Database/DatabaseConnectionTest.php

index d5171d5..62e53a5 100644 (file)
@@ -166,6 +166,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\',