]> granicus.if.org Git - php/commitdiff
fix tests: do not run when noatime set
authorRaghubansh Kumar <kraghuba@php.net>
Thu, 30 Aug 2007 04:02:57 +0000 (04:02 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Thu, 30 Aug 2007 04:02:57 +0000 (04:02 +0000)
ext/standard/tests/file/lstat_stat_variation6.phpt

index 01fa1ec80f93ad1beb3804b3dc0c4ee1f7947eb1..b154a496db74d837cb573b5be84a0f1dcc1c7a96 100755 (executable)
@@ -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