]> granicus.if.org Git - php/commitdiff
Two new options for Travis to come to terms with:
authorSteph Fox <sfox@php.net>
Thu, 19 Jun 2008 21:03:36 +0000 (21:03 +0000)
committerSteph Fox <sfox@php.net>
Thu, 19 Jun 2008 21:03:36 +0000 (21:03 +0000)
- --set-timeout <n> sets the timeout in seconds for the call to stream_select() during system_with_timeout()
- -x sets an environmental variable, SKIP_SLOW_TESTS, which can be checked for during a SKIPIF clause

run-tests.php

index c6bd7bf958989d9b5926aaffc070fee5e843e4af..8962c1f56600172bef8d3f76b4582c63ba6d7b6b 100755 (executable)
@@ -1,5 +1,6 @@
 #!/usr/bin/php
 <?php
+putenv('TEST_PHP_EXECUTABLE=C:/sandbox/php5/Debug_TS/php.exe');
 /*
    +----------------------------------------------------------------------+
    | PHP Version 5                                                        |
@@ -869,7 +870,7 @@ function mail_qa_team($data, $compression, $status = FALSE)
 function save_text($filename, $text, $filename_copy = null)
 {
        global $DETAILED;
-
+file_put_contents('steph.test.again.php', $text);
        if ($filename_copy && $filename_copy != $filename) {
                if (@file_put_contents($filename_copy, $text) === false) {
                        error("Cannot open file '" . $filename_copy . "' (save_text)");