From: andy wharmby Date: Thu, 8 Jan 2009 10:39:50 +0000 (+0000) Subject: Fix bogus file tests - addresses 2 failures in PHP GCOV reports. Tested on Windows... X-Git-Tag: php-5.4.0alpha1~191^2~4596 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aa3d06632eb31aa7e3a877224ce69c583111701;p=php Fix bogus file tests - addresses 2 failures in PHP GCOV reports. Tested on Windows, Linux and Linux 64 bit --- diff --git a/ext/standard/tests/file/lstat_stat_variation3.phpt b/ext/standard/tests/file/lstat_stat_variation3.phpt index 35f3518b6f..e7bae3abb4 100755 --- a/ext/standard/tests/file/lstat_stat_variation3.phpt +++ b/ext/standard/tests/file/lstat_stat_variation3.phpt @@ -40,12 +40,13 @@ $new_stat = lstat($new_linkname); var_dump( compare_self_stat($old_stat) ); var_dump( compare_self_stat($new_stat) ); -// compare the two stats -var_dump( compare_stats($old_stat, $new_stat, $all_stat_keys) ); - -echo "\n--- Done ---"; +// compare the two stats - all except ctime +$keys_to_compare = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, + "dev", "ino", "mode", "nlink", "uid", "gid", + "rdev", "size", "atime", "mtime", "blksize", "blocks"); +var_dump( compare_stats($old_stat, $new_stat, $keys_to_compare) ); ?> - +===Done=== --CLEAN-- +===Done=== --CLEAN--