diff options
| author | Raghubansh Kumar <kraghuba@php.net> | 2007-08-30 04:04:58 +0000 |
|---|---|---|
| committer | Raghubansh Kumar <kraghuba@php.net> | 2007-08-30 04:04:58 +0000 |
| commit | 5081b960e5f9686423804a4c1702c8cdf996f369 (patch) | |
| tree | 9007dfc9796f4f8d8673fa59197eb8cc0a35a037 | |
| parent | 493b67b51898fd9b8d7aefd15200ac1e44bded70 (diff) | |
| download | php-git-5081b960e5f9686423804a4c1702c8cdf996f369.tar.gz | |
fix test: do not run when noatime set
| -rwxr-xr-x | ext/standard/tests/file/lstat_stat_variation6.phpt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/standard/tests/file/lstat_stat_variation6.phpt b/ext/standard/tests/file/lstat_stat_variation6.phpt index de62c05aad..7b96f8f76b 100755 --- a/ext/standard/tests/file/lstat_stat_variation6.phpt +++ b/ext/standard/tests/file/lstat_stat_variation6.phpt @@ -5,6 +5,14 @@ Test lstat() and stat() functions: usage variations - effects of touch() on link if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip.. lstat() not available on Windows'); } + +// checking for atime update whether it is enabled or disabled +exec("mount", $mount_output); +foreach( $mount_output as $out ) { + if( stristr($out, "noatime") ) + die('skip.. atime update is disabled, hence skip the test'); +} + ?> --FILE-- <?php |
