From 668d2d59c2fece76266f6437c29aba8c71a53e96 Mon Sep 17 00:00:00 2001 From: Raghubansh Kumar Date: Thu, 30 Aug 2007 04:02:57 +0000 Subject: [PATCH] fix tests: do not run when noatime set --- ext/standard/tests/file/lstat_stat_variation6.phpt | 8 ++++++++ 1 file changed, 8 insertions(+) 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--