tony2001                                 Tue, 03 May 2011 11:15:45 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=310740

Log:
fix tests

Changed paths:
    U   php/php-src/branches/PHP_5_3/ext/sockets/tests/socket_strerror.phpt
    U   
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation39.phpt
    U   
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation55.phpt
    U   
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf_64bit.phpt
    U   
php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sscanf_basic6.phpt

Modified: php/php-src/branches/PHP_5_3/ext/sockets/tests/socket_strerror.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/sockets/tests/socket_strerror.phpt 
2011-05-03 11:15:30 UTC (rev 310739)
+++ php/php-src/branches/PHP_5_3/ext/sockets/tests/socket_strerror.phpt 
2011-05-03 11:15:45 UTC (rev 310740)
@@ -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/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation39.phpt
===================================================================
--- 
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation39.phpt    
    2011-05-03 11:15:30 UTC (rev 310739)
+++ 
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation39.phpt    
    2011-05-03 11:15:45 UTC (rev 310740)
@@ -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/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation55.phpt
===================================================================
--- 
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation55.phpt    
    2011-05-03 11:15:30 UTC (rev 310739)
+++ 
php/php-src/branches/PHP_5_3/ext/standard/tests/file/fscanf_variation55.phpt    
    2011-05-03 11:15:45 UTC (rev 310740)
@@ -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/branches/PHP_5_3/ext/standard/tests/strings/printf_64bit.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf_64bit.phpt   
2011-05-03 11:15:30 UTC (rev 310739)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/strings/printf_64bit.phpt   
2011-05-03 11:15:45 UTC (rev 310740)
@@ -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/branches/PHP_5_3/ext/standard/tests/strings/sscanf_basic6.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sscanf_basic6.phpt  
2011-05-03 11:15:30 UTC (rev 310739)
+++ php/php-src/branches/PHP_5_3/ext/standard/tests/strings/sscanf_basic6.phpt  
2011-05-03 11:15:45 UTC (rev 310740)
@@ -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


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to