From 2ea4b6ba061af72e2b0457cdcd8f1b6652a1787f Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Fri, 12 Oct 2007 12:32:39 +0000 Subject: [PATCH] Same as for PHP_5_3: Trying to skip tests if they can't connect to the DB server. Note the environment variable MYSQL_TEST_SKIP_CONNECT_FAILURE to control if you want tests that can't connect to fail or to be skipped. --- ext/mysql/tests/002.phpt | 5 ++++- ext/mysql/tests/003.phpt | 5 ++++- ext/mysql/tests/connect.inc | 3 ++- ext/mysql/tests/mysql_affected_rows.phpt | 5 ++++- ext/mysql/tests/mysql_client_encoding.phpt | 5 ++++- ext/mysql/tests/mysql_close.phpt | 5 ++++- ext/mysql/tests/mysql_constants.phpt | 5 ++++- ext/mysql/tests/mysql_data_seek.phpt | 5 ++++- ext/mysql/tests/mysql_db_name.phpt | 5 ++++- ext/mysql/tests/mysql_db_query.phpt | 5 ++++- ext/mysql/tests/mysql_errno.phpt | 5 ++++- ext/mysql/tests/mysql_error.phpt | 5 ++++- ext/mysql/tests/mysql_max_persistent.phpt | 1 + ext/mysql/tests/mysql_trace_mode.phpt | 5 ++++- ext/mysql/tests/skipifconnectfailure.inc | 6 +++--- 15 files changed, 54 insertions(+), 16 deletions(-) diff --git a/ext/mysql/tests/002.phpt b/ext/mysql/tests/002.phpt index 3c628c4116..9c1250104d 100755 --- a/ext/mysql/tests/002.phpt +++ b/ext/mysql/tests/002.phpt @@ -1,7 +1,10 @@ --TEST-- mysql_fetch_array --SKIPIF-- - + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --FILE-- + --INI-- mysql.trace_mode=1 error_reporting=E_ALL | E_NOTICE | E_STRICT diff --git a/ext/mysql/tests/skipifconnectfailure.inc b/ext/mysql/tests/skipifconnectfailure.inc index 2fe4090daf..e586a33f3b 100755 --- a/ext/mysql/tests/skipifconnectfailure.inc +++ b/ext/mysql/tests/skipifconnectfailure.inc @@ -1,17 +1,17 @@ \ No newline at end of file -- 2.50.1