Skip to content

Commit

Permalink
Fix tests for x86 Windows
Browse files Browse the repository at this point in the history
`st_dev` deliberately overflows on such systems, cf.
<http://svn.php.net/viewvc?view=revision&revision=350100>.
  • Loading branch information
cmb69 committed Jul 3, 2020
1 parent 1b961c0 commit a58d865
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions ext/standard/tests/file/lstat_stat_variation18.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ rmdir("$file_path/lstat_stat_variation18");
-- Testing stat() on filename stored inside an object --
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -83,7 +83,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down Expand Up @@ -113,7 +113,7 @@ array(26) {
-- Testing stat() on directory name stored inside an object --
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -139,7 +139,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down
16 changes: 8 additions & 8 deletions ext/standard/tests/file/lstat_stat_variation19.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ rmdir("$file_path/lstat_stat_variation19");
-- Testing stat() on filename stored inside an array --
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -84,7 +84,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down Expand Up @@ -112,7 +112,7 @@ array(26) {
}
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -138,7 +138,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down Expand Up @@ -168,7 +168,7 @@ array(26) {
-- Testing stat() on dir name stored inside an array --
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -194,7 +194,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down Expand Up @@ -222,7 +222,7 @@ array(26) {
}
array(26) {
[0]=>
int(%d)
int(%i)
[1]=>
int(%d)
[2]=>
Expand All @@ -248,7 +248,7 @@ array(26) {
[12]=>
int(%i)
["dev"]=>
int(%d)
int(%i)
["ino"]=>
int(%d)
["mode"]=>
Expand Down

0 comments on commit a58d865

Please sign in to comment.