diff options
author | Anatol Belski <ab@php.net> | 2014-09-29 18:11:06 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-09-29 18:11:06 +0200 |
commit | 91d3cd85593a19ff6ab3c334f74198472788021d (patch) | |
tree | 25005e38e0b01e7bf23f81a37c5e4a29f2fa3477 | |
parent | 46aa2c396bf32b81c76ed2330e8e116eef8886a8 (diff) | |
download | php-git-91d3cd85593a19ff6ab3c334f74198472788021d.tar.gz |
better test cleanup
and even force the XFAIL to fail as it would take too long anyway, even if it passes
-rw-r--r-- | ext/standard/tests/streams/proc_open_bug51800.phpt | 10 | ||||
-rw-r--r-- | ext/standard/tests/streams/proc_open_bug51800_right.phpt | 9 |
2 files changed, 13 insertions, 6 deletions
diff --git a/ext/standard/tests/streams/proc_open_bug51800.phpt b/ext/standard/tests/streams/proc_open_bug51800.phpt index 024d9cd6c6..53cafd8555 100644 --- a/ext/standard/tests/streams/proc_open_bug51800.phpt +++ b/ext/standard/tests/streams/proc_open_bug51800.phpt @@ -2,6 +2,7 @@ Bug #51800 proc_open on Windows hangs forever --SKIPIF-- <?php + echo 'skip expected to fail or take too long'; if (getenv("SKIP_SLOW_TESTS")) { die("skip slow test"); } @@ -17,7 +18,7 @@ so then the pipe buffer is emptied more often and the child has chance to contin write. The behaviour might look some better if write/read in a separate thread, however this is much more resource greedy and complexer to integrate into the user script. */ -$callee = dirname(__FILE__) . "/process" . md5(uniqid()) . ".php"; +$callee = dirname(__FILE__) . "/process_proc_open_bug51800.php"; $php = PHP_BINARY; $cmd = "$php $callee"; @@ -72,10 +73,13 @@ var_dump(array( "stderr" => $stderr, ), strlen($stdout), strlen($stderr)); -unlink($callee); - ?> ===DONE=== +--CLEAN-- +<?php +$callee = dirname(__FILE__) . "/process_proc_open_bug51800.php"; +unlink($callee); +?> --EXPECTF-- array(3) { ["status"]=> diff --git a/ext/standard/tests/streams/proc_open_bug51800_right.phpt b/ext/standard/tests/streams/proc_open_bug51800_right.phpt index bab37a8ba4..b14fed2e5d 100644 --- a/ext/standard/tests/streams/proc_open_bug51800_right.phpt +++ b/ext/standard/tests/streams/proc_open_bug51800_right.phpt @@ -2,7 +2,7 @@ Bug #51800 proc_open on Windows hangs forever, the right way to do it --FILE-- <?php -$callee = dirname(__FILE__) . "/process" . md5(uniqid()) . ".php"; +$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right.php"; $php = PHP_BINARY; $cmd = "$php $callee"; @@ -56,10 +56,13 @@ var_dump(array( "stderr" => $stderr, ), strlen($stdout), strlen($stderr)); -unlink($callee); - ?> ===DONE=== +--CLEAN-- +<?php +$callee = dirname(__FILE__) . "/process_proc_open_bug51800_right.php"; +unlink($callee); +?> --EXPECTF-- array(3) { ["status"]=> |