]> granicus.if.org Git - php/commitdiff
fix tests
authorAntony Dovgal <tony2001@php.net>
Tue, 3 May 2011 11:15:30 +0000 (11:15 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 3 May 2011 11:15:30 +0000 (11:15 +0000)
ext/sockets/tests/socket_strerror.phpt
ext/standard/tests/file/fscanf_variation39.phpt
ext/standard/tests/file/fscanf_variation55.phpt
ext/standard/tests/strings/printf_64bit.phpt
ext/standard/tests/strings/sscanf_basic6.phpt

index d3abe8fb59babc31b48a950b512991ebb01da460..52e7a0a4816f622df314af060b1e13d1c8ec021a 100644 (file)
@@ -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"
index f0d406c5832f41060ee278200da357fda3e2da3d..1b17015bc14650b27d8d6160efb276c70e95f2a7 100644 (file)
@@ -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
 
index 9b02d136d323e11f837dcfe4a5d3ed905ac37a0b..1777f797b2c61452f2f1404fffcc66be0fcfcfd1 100644 (file)
@@ -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
 
index e2e8b22739847371b83a13625ce6dce9b6dd7dfe..d0b7aaff4467cedfe9b2cb82ec37684ef3e6fa19 100755 (executable)
@@ -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
index 4506c4ba977f0f5e7b61d0f1e23ca4ed2525f652..6efdd0b687c258ddbe494d7cefde5d06fa894cbb 100644 (file)
@@ -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