summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2011-05-03 11:15:45 +0000
committerAntony Dovgal <tony2001@php.net>2011-05-03 11:15:45 +0000
commit278392a10bcbb0f694fc02dbf1a30e4b99c83a52 (patch)
tree2c64c9d6c2b22322e5d95e172e4c24b2c3fcf632
parent5bac59b7d18e75b0828419a98c849dd1a915a8b4 (diff)
downloadphp-git-278392a10bcbb0f694fc02dbf1a30e4b99c83a52.tar.gz
fix tests
-rw-r--r--ext/sockets/tests/socket_strerror.phpt2
-rw-r--r--ext/standard/tests/file/fscanf_variation39.phpt6
-rw-r--r--ext/standard/tests/file/fscanf_variation55.phpt6
-rwxr-xr-xext/standard/tests/strings/printf_64bit.phpt2
-rw-r--r--ext/standard/tests/strings/sscanf_basic6.phpt6
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