summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <anozdrin/alik@quad.>2008-02-13 13:00:24 +0300
committerunknown <anozdrin/alik@quad.>2008-02-13 13:00:24 +0300
commite9ec1cd7e0efb2f8efe6f0b830a1e3731f161a55 (patch)
treec40a5d51bf96b759ab604014266ac3b9383d8d9c /mysql-test
parent21f02493aa6f5b6fd3d23ac81db3bbdd65a40742 (diff)
downloadmariadb-git-e9ec1cd7e0efb2f8efe6f0b830a1e3731f161a55.tar.gz
Additional patch for Bug#31222: com_% global status counters
behave randomly with mysql_change_user. The test case had to be moved into not_embedded_server.test file, because SHOW GLOBAL STATUS does not work properly in embedded server (see bug 34517). BitKeeper/deleted/.del-change_user-master.opt: Delete: mysql-test/t/change_user-master.opt mysql-test/r/change_user.result: Move test case for Bug#31222 to not_embedded_server.test. mysql-test/r/not_embedded_server.result: Move test case for Bug#31222 to not_embedded_server.test. mysql-test/t/change_user.test: Move test case for Bug#31222 to not_embedded_server.test. mysql-test/t/not_embedded_server.test: Move test case for Bug#31222 to not_embedded_server.test.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/change_user.result7
-rw-r--r--mysql-test/r/not_embedded_server.result7
-rw-r--r--mysql-test/t/change_user-master.opt1
-rw-r--r--mysql-test/t/change_user.test29
-rw-r--r--mysql-test/t/not_embedded_server.test34
5 files changed, 47 insertions, 31 deletions
diff --git a/mysql-test/r/change_user.result b/mysql-test/r/change_user.result
index 4cfaf0e90ea..28b55dfd5e5 100644
--- a/mysql-test/r/change_user.result
+++ b/mysql-test/r/change_user.result
@@ -44,10 +44,3 @@ IS_FREE_LOCK('bug31418')
SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
NULL
-FLUSH STATUS;
-SHOW GLOBAL STATUS LIKE 'com_select';
-Variable_name Value
-Com_select 112
-SHOW GLOBAL STATUS LIKE 'com_select';
-Variable_name Value
-Com_select 112
diff --git a/mysql-test/r/not_embedded_server.result b/mysql-test/r/not_embedded_server.result
index f2ffe28895d..1b734136e6c 100644
--- a/mysql-test/r/not_embedded_server.result
+++ b/mysql-test/r/not_embedded_server.result
@@ -3,3 +3,10 @@ execute stmt1;
ID USER HOST DB COMMAND TIME STATE INFO
number root localhost test Query time executing SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!='Daemon'
deallocate prepare stmt1;
+FLUSH STATUS;
+SHOW GLOBAL STATUS LIKE 'com_select';
+Variable_name Value
+Com_select 102
+SHOW GLOBAL STATUS LIKE 'com_select';
+Variable_name Value
+Com_select 102
diff --git a/mysql-test/t/change_user-master.opt b/mysql-test/t/change_user-master.opt
deleted file mode 100644
index cef79bc8585..00000000000
--- a/mysql-test/t/change_user-master.opt
+++ /dev/null
@@ -1 +0,0 @@
---force-restart
diff --git a/mysql-test/t/change_user.test b/mysql-test/t/change_user.test
index eec2a6f39d3..82aeb4da4af 100644
--- a/mysql-test/t/change_user.test
+++ b/mysql-test/t/change_user.test
@@ -38,26 +38,9 @@ SELECT IS_USED_LOCK('bug31418');
# Bug#31222: com_% global status counters behave randomly with
# mysql_change_user.
#
-
-FLUSH STATUS;
-
---disable_result_log
---disable_query_log
-
-let $i = 100;
-
-while ($i)
-{
- dec $i;
-
- SELECT 1;
-}
-
---enable_query_log
---enable_result_log
-
-SHOW GLOBAL STATUS LIKE 'com_select';
-
---change_user
-
-SHOW GLOBAL STATUS LIKE 'com_select';
+# Moved to not_embedded_server.test due to Bug#34517: SHOW GLOBAL STATUS does
+# not work properly in embedded server.
+#
+# TODO: move it back when Bug#34517 is fixed (don't forget to add
+# --force-restart into change_user-master.opt).
+#
diff --git a/mysql-test/t/not_embedded_server.test b/mysql-test/t/not_embedded_server.test
index 5beee5967a3..ffc13cf80f7 100644
--- a/mysql-test/t/not_embedded_server.test
+++ b/mysql-test/t/not_embedded_server.test
@@ -20,4 +20,38 @@ prepare stmt1 from ' SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE COMMAND!
execute stmt1;
deallocate prepare stmt1;
+
+#
+# Bug#31222: com_% global status counters behave randomly with
+# mysql_change_user.
+#
+# Moved from change_user.test due to Bug#34517: SHOW GLOBAL STATUS does not
+# work properly in embedded server.
+#
+# TODO: move it back when Bug#34517 is fixed.
+#
+
+FLUSH STATUS;
+
+--disable_result_log
+--disable_query_log
+
+let $i = 100;
+
+while ($i)
+{
+ dec $i;
+
+ SELECT 1;
+}
+
+--enable_query_log
+--enable_result_log
+
+SHOW GLOBAL STATUS LIKE 'com_select';
+
+--change_user
+
+SHOW GLOBAL STATUS LIKE 'com_select';
+
# End of 5.1 tests