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

index de62c05aad4c10d5ff060d3cf7a627acc1f07199..7b96f8f76b869a41a56e65413bf4f06e72b659a8 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