svn: /php/php-src/trunk/ext/ sockets/tests/socket_strerror.phpt standard/tests/file/fscanf_variation39.phpt
standard/tests/file/fscanf_variation55.phpt standard/tests/strings/printf_64bit.phpt standard/tests/strings/sscanf_basic6.phpt
| From: | Antony Dovgal | Date: | Tue, 03 May 2011 11:15:30 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/ sockets/tests/socket_strerror.phpt standard/tests/file/fscanf_variation39.phpt standard/tests/file/fscanf_variation55.phpt standard/tests/strings/printf_64bit.phpt standard/tests/strings/sscanf_basic6.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-64866@lists.php.net to get a copy of this message | ||
tony2001 Tue, 03 May 2011 11:15:30 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=310739
Log:
fix tests
Changed paths:
U php/php-src/trunk/ext/sockets/tests/socket_strerror.phpt
U php/php-src/trunk/ext/standard/tests/file/fscanf_variation39.phpt
U php/php-src/trunk/ext/standard/tests/file/fscanf_variation55.phpt
U php/php-src/trunk/ext/standard/tests/strings/printf_64bit.phpt
U php/php-src/trunk/ext/standard/tests/strings/sscanf_basic6.phpt
Modified: php/php-src/trunk/ext/sockets/tests/socket_strerror.phpt
===================================================================
--- php/php-src/trunk/ext/sockets/tests/socket_strerror.phpt 2011-05-03 10:27:56 UTC (rev 310738)
+++ php/php-src/trunk/ext/sockets/tests/socket_strerror.phpt 2011-05-03 11:15:30 UTC (rev 310739)
@@ -154,4 +154,4 @@
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"
Modified: php/php-src/trunk/ext/standard/tests/file/fscanf_variation39.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/fscanf_variation39.phpt 2011-05-03 10:27:56 UTC (rev
310738)
+++ php/php-src/trunk/ext/standard/tests/file/fscanf_variation39.phpt 2011-05-03 11:15:30 UTC (rev
310739)
@@ -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
Modified: php/php-src/trunk/ext/standard/tests/file/fscanf_variation55.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/file/fscanf_variation55.phpt 2011-05-03 10:27:56 UTC (rev
310738)
+++ php/php-src/trunk/ext/standard/tests/file/fscanf_variation55.phpt 2011-05-03 11:15:30 UTC (rev
310739)
@@ -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
Modified: php/php-src/trunk/ext/standard/tests/strings/printf_64bit.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/strings/printf_64bit.phpt 2011-05-03 10:27:56 UTC (rev
310738)
+++ php/php-src/trunk/ext/standard/tests/strings/printf_64bit.phpt 2011-05-03 11:15:30 UTC (rev
310739)
@@ -671,7 +671,7 @@
*** 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
Modified: php/php-src/trunk/ext/standard/tests/strings/sscanf_basic6.phpt
===================================================================
--- php/php-src/trunk/ext/standard/tests/strings/sscanf_basic6.phpt 2011-05-03 10:27:56 UTC (rev
310738)
+++ php/php-src/trunk/ext/standard/tests/strings/sscanf_basic6.phpt 2011-05-03 11:15:30 UTC (rev
310739)
@@ -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