mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Give a reason why the test was skipped
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
This commit is contained in:
parent
8ca1f47a7a
commit
c93aba042f
17 changed files with 28 additions and 25 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
if (!extension_loaded('fileinfo')) {
|
||||
die("skip");
|
||||
die("skip fileinfo extension not loaded");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
if (!extension_loaded('odbc')) die('skip');
|
||||
if (!extension_loaded('odbc')) die('skip odbc extension not loaded');
|
||||
|
||||
include 'config.inc';
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
?>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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('.');
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
if (!extension_loaded('sqlite3')) {
|
||||
die("skip");
|
||||
die("skip sqlite3 extension not loaded");
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
@ -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--
|
||||
|
|
|
@ -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--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue