Skip to content

Commit

Permalink
More test portability fixes mostly for gcov.php.net
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbj committed Aug 13, 2011
1 parent aa480a4 commit f2b8b48
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ext/oci8/tests/bind_char_1.phpt
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ext/oci8/tests/bind_char_2.phpt
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ext/oci8/tests/bind_char_3.phpt
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ext/oci8/tests/bind_char_4.phpt
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion ext/oci8/tests/bug27303_1.phpt
Expand Up @@ -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

Expand Down Expand Up @@ -251,4 +253,4 @@ string(3) "196"
string(3) "197"
string(3) "198"
string(3) "199"
Done
Done
4 changes: 3 additions & 1 deletion ext/oci8/tests/bug27303_2.phpt
Expand Up @@ -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

Expand Down Expand Up @@ -253,4 +255,4 @@ string(3) "196"
string(3) "197"
string(3) "198"
string(3) "199"
Done
Done
2 changes: 2 additions & 0 deletions ext/oci8/tests/bug27303_4.phpt
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion ext/oci8/tests/lob_029.phpt
Expand Up @@ -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";
Expand Down
1 change: 1 addition & 0 deletions ext/oci8/tests/pecl_bug10194.phpt
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ext/oci8/tests/pecl_bug10194_blob.phpt
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ext/oci8/tests/pecl_bug10194_blob_64.phpt
Expand Up @@ -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
Expand Down

0 comments on commit f2b8b48

Please sign in to comment.