summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2009-01-31 22:04:57 -0200
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2009-01-31 22:04:57 -0200
commitc0ae6f6d86fce430ba6c64f2dd316548e416effa (patch)
tree025603e41282ad72c87a02ebab1b6c9990aca7b8 /mysql-test
parenteb749275f8b3f7f7f549d1a057455926122bf4f0 (diff)
downloadmariadb-git-c0ae6f6d86fce430ba6c64f2dd316548e416effa.tar.gz
Remove duplicated test for Bug#34517
mysql-test/r/change_user.result: Update test case result. mysql-test/r/not_embedded_server.result: Update test case result. mysql-test/t/change_user.test: Move newer (and better) version of the test case. mysql-test/t/not_embedded_server.test: Move this test case over to change_user.test This version is deterministic.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/change_user.result7
-rw-r--r--mysql-test/r/not_embedded_server.result5
-rw-r--r--mysql-test/t/change_user.test10
-rw-r--r--mysql-test/t/not_embedded_server.test46
4 files changed, 17 insertions, 51 deletions
diff --git a/mysql-test/r/change_user.result b/mysql-test/r/change_user.result
index 096388ec611..f8d5d900a80 100644
--- a/mysql-test/r/change_user.result
+++ b/mysql-test/r/change_user.result
@@ -45,9 +45,4 @@ SELECT IS_USED_LOCK('bug31418');
IS_USED_LOCK('bug31418')
NULL
FLUSH STATUS;
-SHOW GLOBAL STATUS LIKE 'com_select';
-Variable_name Value
-Com_select 117
-SHOW GLOBAL STATUS LIKE 'com_select';
-Variable_name Value
-Com_select 117
+Value of com_select did not change
diff --git a/mysql-test/r/not_embedded_server.result b/mysql-test/r/not_embedded_server.result
index 4373d6356d9..8f7c125196a 100644
--- a/mysql-test/r/not_embedded_server.result
+++ b/mysql-test/r/not_embedded_server.result
@@ -1,2 +1,3 @@
-FLUSH STATUS;
-Value of com_select did not change
+select 1;
+1
+1
diff --git a/mysql-test/t/change_user.test b/mysql-test/t/change_user.test
index 47e503a9afd..89f35116a2c 100644
--- a/mysql-test/t/change_user.test
+++ b/mysql-test/t/change_user.test
@@ -63,8 +63,14 @@ while ($i)
--enable_query_log
--enable_result_log
-SHOW GLOBAL STATUS LIKE 'com_select';
+let $before= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
--change_user
-SHOW GLOBAL STATUS LIKE 'com_select';
+let $after= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
+
+if (`select $after != $before`){
+ SHOW GLOBAL STATUS LIKE 'com_select';
+ die The value of com_select changed during change_user;
+}
+echo Value of com_select did not change;
diff --git a/mysql-test/t/not_embedded_server.test b/mysql-test/t/not_embedded_server.test
index 562194a62a4..233ac3edfbb 100644
--- a/mysql-test/t/not_embedded_server.test
+++ b/mysql-test/t/not_embedded_server.test
@@ -4,6 +4,11 @@
-- source include/not_embedded.inc
+#
+# Produce output
+#
+
+select 1;
# The following fails sporadically because 'check-testcase' runs
# queries before this test and there is no way to guarantee that any
@@ -31,45 +36,4 @@
#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
-
-let $before= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
-
---change_user
-
-let $after= query_get_value(SHOW GLOBAL STATUS LIKE 'com_select',Value,1);
-
-if (`select $after != $before`){
- SHOW GLOBAL STATUS LIKE 'com_select';
- die The value of com_select changed during change_user;
-}
-echo Value of com_select did not change;
-
# End of 5.1 tests