fix flakey test

scanning the current directory sucks
Esse commit está contido em:
Paul Tarjan
2013-05-09 09:22:59 -07:00
commit de Sara Golemon
commit 930d45ceb3
2 arquivos alterados com 5 adições e 4 exclusões
@@ -1,8 +1,8 @@
<?php
$globdirs = glob("*", GLOB_ONLYDIR);
$globdirs = glob(__DIR__."/../../../sample_dir/(", GLOB_ONLYDIR);
$dirs = array();
$dh = opendir(".");
$dh = opendir(__DIR__."/../../../sample_dir/");
while (is_string($file = readdir($dh))) {
if ($file[0] === ".") continue;
if (!is_dir($file)) continue;
+3 -2
Ver Arquivo
@@ -535,8 +535,9 @@ def walk(filename, source):
test = test.replace('tempnam_variation6', 'tempnam_variation5')
if '/ext-standard-general_functions/bug41445_1.php' in full_dest_filename:
test = test.replace('bug41445.ini', 'bug41445_1.ini')
if '/ext-standard-file/bug24482.php' in full_dest_filename:
test = test.replace('"*"', '__DIR__."/../../../sample_dir/("')
test = test.replace('opendir(".")', 'opendir(__DIR__."/../../../sample_dir/")')
file(full_dest_filename, 'w').write(test)