Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit 3bdb461

Browse files
committedSep 4, 2017
Update need_more_time() for any memtest run
1 parent 41d1589 commit 3bdb461

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed
 

‎tests/.testsuite.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function dump_object_methods($object, array $arguments = [], FilterInterf
303303

304304
public function need_more_time() {
305305
// NOTE: this check is a bit fragile but should fits our need
306-
return isset($_ENV['TRAVIS']) && isset($_ENV['TEST_PHP_ARGS']) && $_ENV['TEST_PHP_ARGS'] == '-m';
306+
return isset($_ENV['TEST_PHP_ARGS']) && $_ENV['TEST_PHP_ARGS'] == '-m';
307307
}
308308

309309
public function is_memory_test() {

‎tests/Isolate_limit_memory.phpt

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ V8\Isolate - memory limit
44
<?php if (!extension_loaded("v8")) print "skip"; ?>
55
--ENV--
66
HOME=/tmp/we-need-home-env-var-set-to-load-valgrindrc
7-
<?php
8-
/** @var \Phpv8Testsuite $helper */
9-
$helper = require '.testsuite.php';
10-
11-
if ($helper->need_more_time()) {
12-
echo 'skip Random bugs on travis at this time under valgrind';
13-
}
14-
?>
157
--FILE--
168
<?php
179

‎tests/Isolate_limit_memory_nested.phpt

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@ V8\Isolate - nested memory limit exceptions
44
<?php if (!extension_loaded("v8")) print "skip"; ?>
55
--ENV--
66
HOME=/tmp/we-need-home-env-var-set-to-load-valgrindrc
7-
<?php
8-
/** @var \Phpv8Testsuite $helper */
9-
$helper = require '.testsuite.php';
10-
11-
if ($helper->need_more_time()) {
12-
echo 'skip Random bugs on travis at this time under valgrind';
13-
}
14-
?>
157
--FILE--
168
<?php
179

0 commit comments

Comments
 (0)