diff options
author | Raghubansh Kumar <kraghuba@php.net> | 2007-08-30 04:02:57 +0000 |
---|---|---|
committer | Raghubansh Kumar <kraghuba@php.net> | 2007-08-30 04:02:57 +0000 |
commit | 668d2d59c2fece76266f6437c29aba8c71a53e96 (patch) | |
tree | fcf5723b92a63833cf312bc1e873cced3ec2a113 | |
parent | 33347b19f21e3f0898f122b3dd5d9492371aa73b (diff) | |
download | php-git-668d2d59c2fece76266f6437c29aba8c71a53e96.tar.gz |
fix tests: 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 01fa1ec80f..b154a496db 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 |