summaryrefslogtreecommitdiff
path: root/mysql-test/include/check-warnings.test
diff options
context:
space:
mode:
authorunknown <msvensson@shellback.(none)>2008-04-09 14:38:42 +0200
committerunknown <msvensson@shellback.(none)>2008-04-09 14:38:42 +0200
commit5242048883ea02ffaa1cf6ea541644caea3bf58e (patch)
tree15b7792e27a122a1c28905f84cf00f7c75ee82e1 /mysql-test/include/check-warnings.test
parentfc0de68e0099e7a36fadd54131d45a67eccbd1e1 (diff)
downloadmariadb-git-5242048883ea02ffaa1cf6ea541644caea3bf58e.tar.gz
Fix return code from check-warnings to indicate if test failed or not.
No more string matching mysql-test/include/check-warnings.test: Check return value from check_warnings and call skip if ok mysql-test/include/mtr_check.sql: Improve readability mysql-test/include/mtr_warnings.sql: Add out parameter for result. Increase the max_allowed_packet variable so the load_file works even if the server is started with low such value
Diffstat (limited to 'mysql-test/include/check-warnings.test')
-rw-r--r--mysql-test/include/check-warnings.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/mysql-test/include/check-warnings.test b/mysql-test/include/check-warnings.test
index 5b451550456..e29f4300562 100644
--- a/mysql-test/include/check-warnings.test
+++ b/mysql-test/include/check-warnings.test
@@ -4,5 +4,9 @@
# for unexpected warnings found in the servers error log
#
--disable_query_log
-call mtr.check_warnings();
+call mtr.check_warnings(@result);
+if (`select @result = 0`){
+ skip OK;
+}
+echo Found warnings;
--enable_query_log