diff --git a/client/mysqltest.cc b/client/mysqltest.cc index 5f28bf422e1..21f5780ffcb 100644 --- a/client/mysqltest.cc +++ b/client/mysqltest.cc @@ -10200,7 +10200,7 @@ void append_replace_regex(char* expr, char *expr_end, struct st_replace_regex* r /* Allow variable for the *entire* list of replacements */ if (*p == '$') { - const char *v_end; + const char *v_end= 0; VAR *val= var_get(p, &v_end, 0, 1); if (val) diff --git a/mysql-test/include/shutdown_mysqld.inc b/mysql-test/include/shutdown_mysqld.inc index c8ab6d00f0d..c787c2b8c3f 100644 --- a/mysql-test/include/shutdown_mysqld.inc +++ b/mysql-test/include/shutdown_mysqld.inc @@ -26,7 +26,17 @@ if ($rpl_inited) --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect --exec echo "wait" > $_expect_file_name +# Avoid warnings from connection threads that does not have time to exit +--disable_query_log +set @@global.log_warnings=0; +--enable_query_log + --let $server_shutdown_timeout= 60 +if ($VALGRIND_TEST) +{ + --let $server_shutdown_timeout= 300 +} + if ($shutdown_timeout) { --let $server_shutdown_timeout= $shutdown_timeout diff --git a/mysql-test/main/sp-big.result b/mysql-test/main/sp-big.result index 0a07a3aa7a8..ea93f2cac60 100644 --- a/mysql-test/main/sp-big.result +++ b/mysql-test/main/sp-big.result @@ -82,8 +82,8 @@ Warning 1287 '