summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2017-01-10 13:35:38 (GMT)
committerAlex Pott2017-01-10 13:35:38 (GMT)
commit528e3071e9ce955ce21e8c6f4e0553f2ad14f03e (patch)
tree9d53dde4c51a3191cf54ba07d3a96b853474084a
parent04a771a74b693afeb15031d03b801484bcbe576a (diff)
Issue #2828559 by tacituseu, alexpott, mpdonadio, amateescu, hchonov, catch, xjm, Wim Leers, Mixologic: UpdatePathTestBase tests randomly failing
-rw-r--r--update.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/update.php b/update.php
index 42adef2..59e808e 100644
--- a/update.php
+++ b/update.php
@@ -13,6 +13,15 @@ use Symfony\Component\HttpFoundation\Request;
$autoloader = require_once 'autoload.php';
+// Disable garbage collection during test runs. Under certain circumstances the
+// update path will create so many objects that garbage collection causes
+// segmentation faults.
+require_once 'core/includes/bootstrap.inc';
+if (drupal_valid_test_ua()) {
+ gc_collect_cycles();
+ gc_disable();
+}
+
$kernel = new UpdateKernel('prod', $autoloader, FALSE);
$request = Request::createFromGlobals();