Commit Graph

6 Commits

Author SHA1 Message Date
Ulf Wendel
1855a57471 Introducing new environment variable:
MYSQL_TEST_SKIP_CONNECT_FAILURE = false

Every test that needs a working MySQL connection now includes
skipifconnectfailure.inc. If MYSQL_TEST_SKIP_CONNECT_FAILURE evaluates
to true skipifconnectfailure.inc tries to establish a database
connection. If no connection can be opened, the test will be skipped.
In case of MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) an no
connection, a test who cannot establish a connection will fail.

So, if you have a buggy configuration or a server that is sometimes
not available, you can now decide if you want the tests to ignore this
and skip the test or to fail (MYSQL_TEST_CONNECT_FAILURE = false, default).

Other, minor tweaks:
  042.phpt - whitespace
  067.phpt - parse error in SKIPIF section fixed
2007-08-09 08:41:12 +00:00
Ulf Wendel
a4cd950dc8 The last bunch of changes to the old 0*.phpt tests. Once final time a
verbose explanation of changes:

     - take connection parameter from connect.inc
     - use proper UEXPECTF
     - have 'print "done!"' or similar at the end to detect crashes
     - whitespace changes where needed
     - take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0
     - understand return value checking as sometime that makes you type
       more when you write but makes you happy when you debug
2007-07-12 21:02:21 +00:00
Hartmut Holzgraefe
0bbeae457b no need to test ping and kill with embedded server 2006-07-11 23:34:27 +00:00
Hartmut Holzgraefe
ecb58ee2cd check both OO and procedural style as "thread_id" is a property and not
a method in the OO interface
2006-07-11 07:21:27 +00:00
Hartmut Holzgraefe
0bf1cbe8d0 modified test to use (and cover) mysqli->thread_id 2006-07-11 07:10:18 +00:00
Hartmut Holzgraefe
250f4efe6b test kill() 2006-07-11 07:04:44 +00:00