summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2006-03-23 18:58:53 +0100
committerunknown <msvensson@shellback.(none)>2006-03-23 18:58:53 +0100
commit52c4dbd88bd9db49c5a2d729af755073d354a790 (patch)
tree79618e6346e08d2838fdc298c7acdbc74d6c585b /client
parent4688ccf09900b5dc9ae137eb65c7f4f949004d24 (diff)
parent145e4258e56c9bb02f19ff69054daa3fe3d6772c (diff)
downloadmariadb-git-52c4dbd88bd9db49c5a2d729af755073d354a790.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into shellback.(none):/home/msvensson/mysql/mysql-5.0 client/mysqltest.c: Auto merged mysql-test/mysql-test-run.pl: Auto merged
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index 0de63ccd329..37f7418e0ef 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -373,8 +373,10 @@ const char *command_names[]=
"enable_rpl_parse",
"disable_rpl_parse",
"eval_result",
+ /* Enable/disable that the _query_ is logged to result file */
"enable_query_log",
"disable_query_log",
+ /* Enable/disable that the _result_ from a query is logged to result file */
"enable_result_log",
"disable_result_log",
"server_start",
@@ -760,8 +762,8 @@ err:
check_result
ds - content to be checked
fname - name of file to check against
- require_option - if set and check fails, the test will be aborted with the special
- exit code "not supported test"
+ require_option - if set and check fails, the test will be aborted
+ with the special exit code "not supported test"
RETURN VALUES
error - the function will not return
@@ -3716,7 +3718,17 @@ static void handle_error(const char *query, struct st_query *q,
DBUG_ENTER("handle_error");
if (q->require_file)
+ {
+ /*
+ The query after a "--require" failed. This is fine as long the server
+ returned a valid reponse. Don't allow 2013 or 2006 to trigger an
+ abort_not_supported_test
+ */
+ if (err_errno == CR_SERVER_LOST ||
+ err_errno == CR_SERVER_GONE_ERROR)
+ die("require query '%s' failed: %d: %s", query, err_errno, err_error);
abort_not_supported_test();
+ }
if (q->abort_on_error)
die("query '%s' failed: %d: %s", query, err_errno, err_error);