com php-src: fix test concurrency: ext/phar/tests/phar_extrac t2.phpt
| From: | Michael Wallner | Date: | Wed, 18 Sep 2013 09:02:45 +0000 |
| Subject: | com php-src: fix test concurrency: ext/phar/tests/phar_extrac t2.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73256@lists.php.net to get a copy of this message | ||
Commit: cdf5d201ab570284d8865a4b8366bddb662410eb
Author: Michael Wallner <mike@php.net> Wed, 18 Sep 2013 11:02:45 +0200
Parents: e9877fe92e8f9a0cc212362f6c35550b92036b3e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cdf5d201ab570284d8865a4b8366bddb662410eb
Log:
fix test concurrency
Changed paths:
M ext/phar/tests/phar_extract2.phpt
Diff:
diff --git a/ext/phar/tests/phar_extract2.phpt b/ext/phar/tests/phar_extract2.phpt
index fafe254..7de8cee 100644
--- a/ext/phar/tests/phar_extract2.phpt
+++ b/ext/phar/tests/phar_extract2.phpt
@@ -23,7 +23,7 @@ $phar->extractTo(dirname(__FILE__) . '/extract2',
'mount2');
$phar->extractTo(dirname(__FILE__) . '/extract2');
$out = array();
-foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__) .
'/extract', 0x00003000), RecursiveIteratorIterator::CHILD_FIRST) as $path => $file) {
+foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__) .
'/extract2', 0x00003000), RecursiveIteratorIterator::CHILD_FIRST) as $path => $file) {
$extracted[] = $path;
}
@@ -51,10 +51,10 @@ $dir = dirname(__FILE__) . '/extract1/';
@rmdir($dir);
?>
--EXPECTF--
-%sextract%cfile1.txt
-%sextract%cfile2.txt
-%sextract%cone
-%sextract%csubdir
-%sextract%csubdir%cectory
-%sextract%csubdir%cectory%cfile.txt
+%sextract2%cfile1.txt
+%sextract2%cfile2.txt
+%sextract2%cone
+%sextract2%csubdir
+%sextract2%csubdir%cectory
+%sextract2%csubdir%cectory%cfile.txt
===DONE===