summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_temporary.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-05-12 09:13:37 +0200
committerunknown <msvensson@neptunus.(none)>2006-05-12 09:13:37 +0200
commitacf1879938049f2c429d9a4aa7559ec9f495721d (patch)
treea7dee37a9939ee963792a71f2a7d6c62098e999c /mysql-test/t/rpl_temporary.test
parente42692c0a9e100595c5937b8516c05b2fd50ab54 (diff)
downloadmariadb-git-acf1879938049f2c429d9a4aa7559ec9f495721d.tar.gz
Bug#19709 rpl_tmporary fails on powermacg5
- Don't kill the active connection to the server, instead read the connection id, switch connection and kill the first one from there. mysql-test/r/rpl_temporary.result: Update test result mysql-test/t/rpl_temporary.test: Don't kill our own connection to the server as the result code differs depending on platform.
Diffstat (limited to 'mysql-test/t/rpl_temporary.test')
-rw-r--r--mysql-test/t/rpl_temporary.test14
1 files changed, 12 insertions, 2 deletions
diff --git a/mysql-test/t/rpl_temporary.test b/mysql-test/t/rpl_temporary.test
index facf0d68d2b..7d2222ea79a 100644
--- a/mysql-test/t/rpl_temporary.test
+++ b/mysql-test/t/rpl_temporary.test
@@ -169,8 +169,18 @@ create temporary table t102 (id int);
set @session.pseudo_thread_id=200;
create temporary table t201 (id int);
create temporary table `#not_user_table_prefixed_with_hash_sign_no_harm` (id int);
-set @con1_id=connection_id();
-kill @con1_id;
+
+#
+# Don't kill our own connection to the server as
+# the result code differs depending on platform.
+#
+# Select the id to kill into a variable of mysqltest
+let $con1_id= `select connection_id()`;
+# Switch connection to avoid killing our own connection
+connection master;
+--disable_query_log
+eval kill $con1_id;
+--enable_query_log
#now do something to show that slave is ok after DROP temp tables
connection master;