From b53451b99e27646560c91c1c4ce6e0259bd2ca22 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Sat, 13 Aug 2011 00:43:34 +0000 Subject: [PATCH] More test portability fixes mostly for gcov.php.net --- ext/oci8/tests/bind_char_1.phpt | 2 ++ ext/oci8/tests/bind_char_2.phpt | 2 ++ ext/oci8/tests/bind_char_3.phpt | 2 ++ ext/oci8/tests/bind_char_4.phpt | 2 ++ ext/oci8/tests/bug27303_1.phpt | 4 +++- ext/oci8/tests/bug27303_2.phpt | 4 +++- ext/oci8/tests/bug27303_4.phpt | 2 ++ ext/oci8/tests/lob_029.phpt | 3 ++- ext/oci8/tests/pecl_bug10194.phpt | 1 + ext/oci8/tests/pecl_bug10194_blob.phpt | 1 + ext/oci8/tests/pecl_bug10194_blob_64.phpt | 1 + 11 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ext/oci8/tests/bind_char_1.phpt b/ext/oci8/tests/bind_char_1.phpt index a5b059ed1d..a668294d4d 100644 --- a/ext/oci8/tests/bind_char_1.phpt +++ b/ext/oci8/tests/bind_char_1.phpt @@ -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-- +--ENV-- +NLS_LANG= --FILE-- +--ENV-- +NLS_LANG= --FILE-- +--ENV-- +NLS_LANG= --FILE-- +--ENV-- +NLS_LANG= --FILE-- +--ENV-- +NLS_LANG= --FILE-- +--ENV-- +NLS_LANG= --FILE-- --FILE-- 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 diff --git a/ext/oci8/tests/pecl_bug10194_blob.phpt b/ext/oci8/tests/pecl_bug10194_blob.phpt index 38f6d9ed2f..75632ce473 100644 --- a/ext/oci8/tests/pecl_bug10194_blob.phpt +++ b/ext/oci8/tests/pecl_bug10194_blob.phpt @@ -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 diff --git a/ext/oci8/tests/pecl_bug10194_blob_64.phpt b/ext/oci8/tests/pecl_bug10194_blob_64.phpt index 9ffc03d320..da7ec592fc 100644 --- a/ext/oci8/tests/pecl_bug10194_blob_64.phpt +++ b/ext/oci8/tests/pecl_bug10194_blob_64.phpt @@ -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 -- 2.40.0