kraghuba Fri Sep 14 09:44:02 2007 UTC
Modified files:
/php-src/ext/standard/tests/file lstat_stat_variation6.phpt
Log:
fix test
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/lstat_stat_variation6.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/file/lstat_stat_variation6.phpt
diff -u php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.3
php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.4
--- php-src/ext/standard/tests/file/lstat_stat_variation6.phpt:1.3 Thu Aug
30 04:02:57 2007
+++ php-src/ext/standard/tests/file/lstat_stat_variation6.phpt Fri Sep 14
09:44:02 2007
@@ -2,8 +2,8 @@
Test lstat() and stat() functions: usage variations - effects of touch() on
link
--SKIPIF--
<?php
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- die('skip.. lstat() not available on Windows');
+if (!(stristr(PHP_OS, 'linux'))) {
+ die('skip.. test valid for linux only');
}
// checking for atime update whether it is enabled or disabled
@@ -40,10 +40,13 @@
// touch a link, check stat, there should be difference in atime
echo "*** Testing lstat() for link after using touch() on the link ***\n";
$old_stat = lstat($link_name);
+sleep(2);
+
// clear the cache
clearstatcache();
-sleep(2);
+
var_dump( touch($link_name) );
+
$new_stat = lstat($link_name);
// compare self stats
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php