]> granicus.if.org Git - php/commitdiff
Give a reason why the test was skipped
authorGabriel Caruso <carusogabriel34@gmail.com>
Sun, 22 Jul 2018 19:41:41 +0000 (16:41 -0300)
committerGabriel Caruso <carusogabriel34@gmail.com>
Sun, 22 Jul 2018 19:41:41 +0000 (16:41 -0300)
This will help us debug why a test was skipped in GCOV
(http://gcov.php.net/viewer.php?version=PHP_HEAD&func=skip), and maybe
put them to run again

17 files changed:
ext/fileinfo/tests/finfo_file_stream_001.phpt
ext/fileinfo/tests/skipif.inc
ext/iconv/tests/iconv_mime_decode_headers_variation2.phpt
ext/iconv/tests/iconv_mime_decode_headers_variation3.phpt
ext/iconv/tests/iconv_mime_decode_variation2.phpt
ext/intl/tests/collator_get_locale2.phpt
ext/intl/tests/dateformat_clone2.phpt
ext/intl/tests/dateformat_get_set_pattern2.phpt
ext/odbc/tests/skipif.inc
ext/pdo_firebird/tests/skipif.inc
ext/pdo_sqlite/tests/bug_63916-2.phpt
ext/readline/tests/readline_read_history_error_001.phpt
ext/spl/tests/dit_001_noglob.phpt
ext/sqlite3/tests/bug63921-32bit.phpt
ext/sqlite3/tests/skipif.inc
ext/sqlite3/tests/sqlite3_11_numrows.phpt
ext/standard/tests/strings/bug65230.phpt

index 4a22c5419d5a3b9b7c8661b925663402c2e77d90..3d371b71bdaaf5892807b5b3b770be7ef1367918 100644 (file)
@@ -2,7 +2,7 @@
 finfo_file(): Files and directories inside an stream
 --SKIPIF--
 <?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
-<?php if (!extension_loaded('zip')) { die("skip"); } ?>
+<?php if (!extension_loaded('zip')) { die("skip zip extension not loaded"); } ?>
 --FILE--
 <?php
 
index 405800971e473ed6fd8f15120464dd9588b88179..97b2546809716e729b4caec6d992b0a0ce07d23d 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 if (!extension_loaded('fileinfo')) {
-       die("skip");
+       die("skip fileinfo extension not loaded");
 }
 
 ?>
index 4e547c131f9ac1f2d592e895131c697e1948ae4a..a0e40aaa0cddef86a2b427cd154403047dbbb473 100644 (file)
@@ -2,8 +2,8 @@
 Test iconv_mime_encode() function : usage variations - Pass different data types to mode arg
 --SKIPIF--
 <?php
-PHP_INT_SIZE == 4 or die('skip');
-extension_loaded('iconv') or die('skip');
+PHP_INT_SIZE == 4 or die('skip 32-bit only');
+extension_loaded('iconv') or die('skip iconv extension not loaded');
 function_exists('iconv_mime_decode_headers') or die("skip iconv_mime_decode_headers() is not available in this build");
 ?>
 --FILE--
index e17525e0fe53a3ab56c6e814e8d18f4366a9e8d6..da481e75142b43a5f508fd9d3775652ceca404cd 100644 (file)
@@ -2,8 +2,8 @@
 Test iconv_mime_encode() function : usage variations - Pass different data types to charset arg
 --SKIPIF--
 <?php
-PHP_INT_SIZE == 4 or die('skip');
-extension_loaded('iconv') or die('skip');
+PHP_INT_SIZE == 4 or die('skip 32-bit only');
+extension_loaded('iconv') or die('skip iconv extension not loaded');
 function_exists('iconv_mime_decode_headers') or die("skip iconv_mime_decode_headers() is not available in this build");
 ?>
 --FILE--
index c4e3c4d400cb45295829c1a7c4845d7aaa50cf36..b0426558ed308219c5390e2731a67f6b7dd0650b 100644 (file)
@@ -2,8 +2,8 @@
 Test iconv_mime_decode() function : usage variations - Pass different data types to mode arg
 --SKIPIF--
 <?php
-PHP_INT_SIZE == 4 or die('skip');
-extension_loaded('iconv') or die('skip');
+PHP_INT_SIZE == 4 or die('skip 32-bit only');
+extension_loaded('iconv') or die('skip iconv extension not loaded');
 function_exists('iconv_mime_decode') or die("skip iconv_mime_decode() is not available in this build");
 ?>
 --FILE--
index e9a9f2653db92e46901fee68645f05d0b15816d8..944f42ec3e79b980f3a97028ddde7c5c86169b2d 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 get_locale() icu >= 4.8
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
-<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) print 'skip intl extension not loaded'; ?>
+<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip ICU 4.8+ only'; ?>
 <?php if (PHP_INT_SIZE != 8) die('skip 64-bit only'); ?>
 --FILE--
 <?php
index 34b802120a3dd25acd26bbc3524130807995b5a1..052b73216440577c0d93a664fbda7d330d596809 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 Cloning datefmt icu >= 4.8
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
-<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) print 'skip intl extension not loaded'; ?>
+<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip ICU 4.8+ only'; ?>
 --FILE--
 <?php
 include_once( 'ut_common.inc' );
index de41f1067cf8b0d2765d5bddde8ee3294da2ea13..b64ec179ad740bf14695301bfa573038c1e18480 100644 (file)
@@ -1,8 +1,8 @@
 --TEST--
 datefmt_get_pattern_code and datefmt_set_pattern_code() icu >= 4.8
 --SKIPIF--
-<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
-<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip'; ?>
+<?php if( !extension_loaded( 'intl' ) ) print 'skip intl extension not loaded'; ?>
+<?php if(version_compare(INTL_ICU_VERSION, '4.8') < 0) print 'skip ICU 4.8+ only'; ?>
 --FILE--
 
 <?php
index 179a5b180e106891dbff3b60575f439cf4550062..4cd13d0be651059def7cee4666f5ce15ad9d91b6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if (!extension_loaded('odbc')) die('skip');
+if (!extension_loaded('odbc')) die('skip odbc extension not loaded');
 
 include 'config.inc';
 
index 14b2ad4016b9b70198e5f9fc05e683daa8e682d2..f87f939e14377a72c92a57f88f7aef21517ffefc 100644 (file)
@@ -1,5 +1,6 @@
 <?php /* $Id$ */
 
-if (!extension_loaded("interbase") || !extension_loaded("pdo_firebird")) print "skip";
+if (!extension_loaded("pdo_firebird")) die('skip pdo_firebird extension not loaded');
+if (!extension_loaded("interbase")) print "skip interbase extension not loaded";
 
 ?>
index bc9bfc9c98293a189904018fb04f616375773070..4535410b551634b7c3d227d29393abef7641a222 100644 (file)
@@ -2,8 +2,8 @@
 Bug #63916 PDO::PARAM_INT casts to 32bit int internally even on 64bit builds in pdo_sqlite
 --SKIPIF--
 <?php
-if (!extension_loaded('pdo_sqlite')) die('skip');
-if (PHP_INT_SIZE > 4) die('skip');
+if (!extension_loaded('pdo_sqlite')) die('skip pdo_sqlite extension not loaded');
+if (PHP_INT_SIZE > 4) die('skip 32-bit only');
 ?>
 --FILE--
 <?php
index 1b39cbfb1275504cf2ad26c202295e847c85bbe7..836c83b8074915aa77af137e9908f862d0556384 100644 (file)
@@ -3,7 +3,9 @@ readline_read_history() function - Error cases
 --CREDITS--
 Pedro Manoel Evangelista <pedro.evangelista at gmail dot com>
 --SKIPIF--
-<?php if (!extension_loaded("readline") || !function_exists('readline_read_history') || READLINE_LIB != "libedit") die("skip"); ?>
+<?php if (!extension_loaded("readline")) die('skip readline extension not loaded'); ?>
+<?php if (!function_exists('readline_read_history')) die('skip readline_read_history function does not exist'); ?>
+<?php if (!READLINE_LIB != "libedit") die('skip READLINE_LIB != "libedit"'); ?>
 --FILE--
 <?php
 var_dump(readline_read_history());
index acb2092a55eb426551a9a596826fe85d7925b378..f1104c881b9defb98a59fed88859ab07cb160d6d 100644 (file)
@@ -2,7 +2,7 @@
 SPL: Problem with casting to string (no glob version)
 --SKIPIF--
 <?php
-if (defined('GLOB_ERR')) print "skip";
+if (defined('GLOB_ERR')) print "skip GLOB_ERR defined";
 --FILE--
 <?php
 $d = new DirectoryIterator('.');
index d2cc7b20022c7a2b7c2fe262623c7192d79a80ea..1eaa3496ed01bdcb85aa36cbbf833c05741b41ff 100644 (file)
@@ -2,8 +2,8 @@
 Bug #63921 sqlite3::bindvalue and relative PHP functions aren't using sqlite3_*_int64 API
 --SKIPIF--
 <?php
-if (!extension_loaded('sqlite3')) die('skip');
-if (PHP_INT_SIZE > 4) die('skip'); // skip for 64bit builds - there is another test for that
+if (!extension_loaded('sqlite3')) die('skip sqlite3 extension not loaded');
+if (PHP_INT_SIZE > 4) die('skip 32-bit only'); // skip for 64bit builds - there is another test for that
 ?>
 --FILE--
 <?php
index 3427965d1d00685e1054cfa5dbbe76ee656eed9c..9614e679b96fcfeacaf96ca062febb45589361e9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 if (!extension_loaded('sqlite3')) {
-       die("skip");
+       die("skip sqlite3 extension not loaded");
 }
 
 ?>
index 87168db06bbd8e608caca442c7937f2e002a3dd6..49b8cd7cc7a98da3aa8cd8295cf42f9c6673c8fb 100644 (file)
@@ -6,7 +6,7 @@ SQLite3::prepare number of rows
 try {
        $method = new ReflectionMethod('sqlite3result', 'numRows');
 } catch (ReflectionException $e) {
-       die("skip");
+       die("skip SQLite3Result::numRows method does not exist");
 }
 ?>
 --FILE--
index c707dd36913d7aec6414de67eb65e2e51618e68a..c92e558c49519715f025677d64d31692c823cfc8 100644 (file)
@@ -3,7 +3,7 @@ Bug #65230 setting locale randomly broken
 --SKIPIF--
 <?php
 if (substr(PHP_OS, 0, 3) != 'WIN') {
-    die('skip');
+    die('skip Windows only test');
 }
 ?>
 --INI--