diff options
author | Antony Dovgal <tony2001@php.net> | 2011-05-03 11:15:30 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2011-05-03 11:15:30 +0000 |
commit | 354cb67597b6956158837c36936b68f56c0daf09 (patch) | |
tree | 736cc7fd235c09efa27f46e3cb4787cfe1d6d7b3 | |
parent | 48cb3447bbfd44fa8232d5e581f2fa5d823a2ce7 (diff) | |
download | php-git-354cb67597b6956158837c36936b68f56c0daf09.tar.gz |
fix tests
-rw-r--r-- | ext/sockets/tests/socket_strerror.phpt | 2 | ||||
-rw-r--r-- | ext/standard/tests/file/fscanf_variation39.phpt | 6 | ||||
-rw-r--r-- | ext/standard/tests/file/fscanf_variation55.phpt | 6 | ||||
-rwxr-xr-x | ext/standard/tests/strings/printf_64bit.phpt | 2 | ||||
-rw-r--r-- | ext/standard/tests/strings/sscanf_basic6.phpt | 6 |
5 files changed, 20 insertions, 2 deletions
diff --git a/ext/sockets/tests/socket_strerror.phpt b/ext/sockets/tests/socket_strerror.phpt index d3abe8fb59..52e7a0a481 100644 --- a/ext/sockets/tests/socket_strerror.phpt +++ b/ext/sockets/tests/socket_strerror.phpt @@ -154,4 +154,4 @@ string(20) "Key has been revoked" string(27) "Key was rejected by service" string(10) "Owner died" string(21) "State not recoverable" -string(37) "Operation not possible due to RF-kill" +string(%d) "%s" diff --git a/ext/standard/tests/file/fscanf_variation39.phpt b/ext/standard/tests/file/fscanf_variation39.phpt index f0d406c583..1b17015bc1 100644 --- a/ext/standard/tests/file/fscanf_variation39.phpt +++ b/ext/standard/tests/file/fscanf_variation39.phpt @@ -1,5 +1,11 @@ --TEST-- Test fscanf() function: usage variations - unsigned int formats with integer values +--SKIPIF-- +<?php +if (PHP_INT_SIZE != 4) { + die("skip this test is for 32bit platform only"); +} +?> --FILE-- <?php diff --git a/ext/standard/tests/file/fscanf_variation55.phpt b/ext/standard/tests/file/fscanf_variation55.phpt index 9b02d136d3..1777f797b2 100644 --- a/ext/standard/tests/file/fscanf_variation55.phpt +++ b/ext/standard/tests/file/fscanf_variation55.phpt @@ -1,5 +1,11 @@ --TEST-- Test fscanf() function: usage variations - tracking file pointer while reading +--SKIPIF-- +<?php +if (PHP_INT_SIZE != 4) { + die("skip this test is for 32bit platform only"); +} +?> --FILE-- <?php diff --git a/ext/standard/tests/strings/printf_64bit.phpt b/ext/standard/tests/strings/printf_64bit.phpt index e2e8b22739..d0b7aaff44 100755 --- a/ext/standard/tests/strings/printf_64bit.phpt +++ b/ext/standard/tests/strings/printf_64bit.phpt @@ -671,7 +671,7 @@ Array *** Output for precision value more than maximum *** Notice: printf(): Requested precision of 988 digits was truncated to PHP maximum of %d digits in %s on line %d -12345678900.0000000000000000000000000000000000000000 +12345678900.0000000000%d *** Output for invalid width(-15) specifier *** 15s diff --git a/ext/standard/tests/strings/sscanf_basic6.phpt b/ext/standard/tests/strings/sscanf_basic6.phpt index 4506c4ba97..6efdd0b687 100644 --- a/ext/standard/tests/strings/sscanf_basic6.phpt +++ b/ext/standard/tests/strings/sscanf_basic6.phpt @@ -1,5 +1,11 @@ --TEST-- Test sscanf() function : basic functionality - unsigned format +--SKIPIF-- +<?php +if (PHP_INT_SIZE != 4) { + die("skip this test is for 32bit platform only"); +} +?> --FILE-- <?php |