1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 08:58:28 +02:00

More test portability fixes mostly for gcov.php.net

This commit is contained in:
Christopher Jones
2011-08-13 00:43:34 +00:00
parent b03860a935
commit b53451b99e
11 changed files with 21 additions and 3 deletions
+2
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
+2
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
+2
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
+2
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
+3 -1
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
@@ -251,4 +253,4 @@ string(3) "196"
string(3) "197"
string(3) "198"
string(3) "199"
Done
Done
+3 -1
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
@@ -253,4 +255,4 @@ string(3) "196"
string(3) "197"
string(3) "198"
string(3) "199"
Done
Done
+2
View File
@@ -10,6 +10,8 @@ if (preg_match('/Release 1[01]\.2\./', oci_server_version($c), $matches) !== 1)
die("skip test expected to work only with Oracle 11g or greater version of client");
}
?>
--ENV--
NLS_LANG=
--FILE--
<?php
+2 -1
View File
@@ -11,13 +11,14 @@ if (preg_match('/Compile-time ORACLE_HOME/', $phpinfo) !== 1) {
// Assume building PHP with an ORACLE_HOME means the tested DB is on the same machine as PHP
die("skip this test won't work with remote Oracle");
}
if (substr(PHP_OS, 0, 3) == 'WIN') die("skip Test script not ported to Windows");
?>
--FILE--
<?php
require(dirname(__FILE__).'/connect.inc');
$realdirname = dirname(__FILE__);
$realdirname = "/tmp"; // Use /tmp because a local dir can give ORA-22288 depending on perms
$realfilename1 = "oci8bfiletest1.txt";
$fullname1 = $realdirname."/".$realfilename1;
$realfilename2 = "oci8bfiletest2.txt";
+1
View File
@@ -4,6 +4,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
<?php
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
?>
--INI--
memory_limit=10M
+1
View File
@@ -5,6 +5,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs
require(dirname(__FILE__).'/skipif.inc');
if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platforms only");
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
?>
--INI--
memory_limit=3M
@@ -5,6 +5,7 @@ PECL Bug #10194 (segfault in Instant Client when memory_limit is reached inside
$target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on thes
require(dirname(__FILE__).'/skipif.inc');
if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platforms only");
if ($stress_test !== true) die ('skip Test not run when $stress_test is FALSE');
?>
--INI--
memory_limit=6M